mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Draw wait reason/state explanation with small font.
This commit is contained in:
parent
b59739fac2
commit
e0897e8e40
@ -4007,11 +4007,17 @@ void View::DrawContextSwitches( const ContextSwitch* ctx, const Vector<SampleDat
|
|||||||
{
|
{
|
||||||
TextFocused( "Wait reason:", DecodeContextSwitchReasonCode( pit->Reason() ) );
|
TextFocused( "Wait reason:", DecodeContextSwitchReasonCode( pit->Reason() ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
ImGui::PushFont( m_smallFont );
|
||||||
|
ImGui::AlignTextToFramePadding();
|
||||||
TextDisabledUnformatted( DecodeContextSwitchReason( pit->Reason() ) );
|
TextDisabledUnformatted( DecodeContextSwitchReason( pit->Reason() ) );
|
||||||
|
ImGui::PopFont();
|
||||||
}
|
}
|
||||||
TextFocused( "Wait state:", DecodeContextSwitchStateCode( pit->State() ) );
|
TextFocused( "Wait state:", DecodeContextSwitchStateCode( pit->State() ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
ImGui::PushFont( m_smallFont );
|
||||||
|
ImGui::AlignTextToFramePadding();
|
||||||
TextDisabledUnformatted( DecodeContextSwitchState( pit->State() ) );
|
TextDisabledUnformatted( DecodeContextSwitchState( pit->State() ) );
|
||||||
|
ImGui::PopFont();
|
||||||
}
|
}
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user