diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-12-22 19:34:04 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-12-22 19:57:57 +0300 |
commit | 6b59ccfe4d6b612102e422292bf8ee9e3784b231 (patch) | |
tree | a1fc2871fc91da778e9eb696d2915323e78bf425 /profiler/src/main.cpp | |
parent | 9fae8b7e42aa73a83536b3acc51ac0ce455a3df1 (diff) |
GetFontSize() -> GetTextLineHeight().
Diffstat (limited to 'profiler/src/main.cpp')
-rw-r--r-- | profiler/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 6ca614f4..5af16f9b 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -763,7 +763,7 @@ static void DrawContents() view = std::make_unique<tracy::View>( RunOnMainThread, addr, port, fixedWidth, smallFont, bigFont, SetWindowTitleCallback, GetMainWindowNative, SetupScaleCallback ); } } - ImGui::SameLine( 0, ImGui::GetFontSize() * 2 ); + ImGui::SameLine( 0, ImGui::GetTextLineHeight() * 2 ); #ifndef TRACY_NO_FILESELECTOR if( ImGui::Button( ICON_FA_FOLDER_OPEN " Open saved trace" ) && !loadThread.joinable() ) @@ -842,7 +842,7 @@ static void DrawContents() } if( showFilter ) { - const auto w = ImGui::GetFontSize() * 12; + const auto w = ImGui::GetTextLineHeight() * 12; ImGui::Separator(); addrFilter.Draw( "Address filter", w ); portFilter.Draw( "Port filter", w ); |