From cc196ff0a888edbc57ac165ecc801c9bcda6714c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Jun 2018 00:35:44 +0200 Subject: [PATCH] Adapt frames view to font size. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a2adf29d..df4455b9 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -514,7 +514,8 @@ void View::DrawFrames() { assert( m_worker.GetFrameCount() != 0 ); - enum { Height = 40 }; + const auto Height = 40 * ImGui::GetTextLineHeight() / 15.f; + enum { MaxFrameTime = 50 * 1000 * 1000 }; // 50ms ImGuiWindow* window = ImGui::GetCurrentWindow();