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;