From e0897e8e40eff70b80a8cf754e2b9d238b445969 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 25 Apr 2022 03:05:12 +0200 Subject: [PATCH] Draw wait reason/state explanation with small font. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4c6b42ce..ed40938f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4007,11 +4007,17 @@ void View::DrawContextSwitches( const ContextSwitch* ctx, const VectorReason() ) ); ImGui::SameLine(); + ImGui::PushFont( m_smallFont ); + ImGui::AlignTextToFramePadding(); TextDisabledUnformatted( DecodeContextSwitchReason( pit->Reason() ) ); + ImGui::PopFont(); } TextFocused( "Wait state:", DecodeContextSwitchStateCode( pit->State() ) ); ImGui::SameLine(); + ImGui::PushFont( m_smallFont ); + ImGui::AlignTextToFramePadding(); TextDisabledUnformatted( DecodeContextSwitchState( pit->State() ) ); + ImGui::PopFont(); } tooltip = true;