Move GetScale() to TracyImGui.hpp.

This commit is contained in:
Bartosz Taudul 2021-11-20 01:21:06 +01:00
parent 9af87a8c20
commit be9cbfc3e2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 6 additions and 6 deletions

View File

@ -49,6 +49,12 @@ static const ImVec4 SyntaxColorsDimmed[] = {
{ 0.21f, 0.69f, 0.89f, 0.6f }, // special { 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 ) [[maybe_unused]] static inline void TextCentered( const char* text )
{ {
const auto tw = ImGui::CalcTextSize( text ).x; const auto tw = ImGui::CalcTextSize( text ).x;

View File

@ -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 ) static inline uint64_t GetThreadBit( uint8_t thread )
{ {
return uint64_t( 1 ) << thread; return uint64_t( 1 ) << thread;