Draw wait reason/state explanation with small font.

This commit is contained in:
Bartosz Taudul 2022-04-25 03:05:12 +02:00
parent b59739fac2
commit e0897e8e40
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -4007,11 +4007,17 @@ void View::DrawContextSwitches( const ContextSwitch* ctx, const Vector<SampleDat
{
TextFocused( "Wait reason:", DecodeContextSwitchReasonCode( pit->Reason() ) );
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;