1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

GetFontSize() -> GetTextLineHeight().

This commit is contained in:
Bartosz Taudul
2021-12-22 17:34:04 +01:00
parent 9fae8b7e42
commit 6b59ccfe4d
4 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -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 );