From be9cbfc3e239b08a01273cecdf4a42493f63b5b8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 20 Nov 2021 01:21:06 +0100 Subject: [PATCH] Move GetScale() to TracyImGui.hpp. --- server/TracyImGui.hpp | 6 ++++++ server/TracyView.cpp | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index c5a066b0..51569c81 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -49,6 +49,12 @@ static const ImVec4 SyntaxColorsDimmed[] = { { 0.21f, 0.69f, 0.89f, 0.6f }, // special }; + +[[maybe_unused]] static inline float GetScale() +{ + return ImGui::GetTextLineHeight() / 15.f; +} + [[maybe_unused]] static inline void TextCentered( const char* text ) { const auto tw = ImGui::CalcTextSize( text ).x; diff --git a/server/TracyView.cpp b/server/TracyView.cpp index dae48430..6cc5f267 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -81,12 +81,6 @@ constexpr const char* GpuContextNames[] = { }; -static inline float GetScale() -{ - return ImGui::GetTextLineHeight() / 15.f; -} - - static inline uint64_t GetThreadBit( uint8_t thread ) { return uint64_t( 1 ) << thread;