mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Unify comparison for accumulation mode combo box.
This commit is contained in:
parent
f3f5f1dab8
commit
3ee91b909f
@ -12692,9 +12692,9 @@ void View::AccumulationModeComboBox()
|
|||||||
{
|
{
|
||||||
ImGui::TextUnformatted( "Timing" );
|
ImGui::TextUnformatted( "Timing" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
const char* accumulationModeTable = m_statMode == 0 ? "Self only\0With children\0Non-reentrant\0" : "Self only\0With children\0";
|
const char* accumulationModeTable = m_statMode == 1 ? "Self only\0With children\0" : "Self only\0With children\0Non-reentrant\0";
|
||||||
ImGui::SetNextItemWidth( ImGui::CalcTextSize( "Non-reentrant" ).x + ImGui::GetTextLineHeight() * 2 );
|
ImGui::SetNextItemWidth( ImGui::CalcTextSize( "Non-reentrant" ).x + ImGui::GetTextLineHeight() * 2 );
|
||||||
if ( m_statMode != 0 && m_statAccumulationMode == AccumulationMode::NonReentrantChildren )
|
if( m_statMode == 1 && m_statAccumulationMode == AccumulationMode::NonReentrantChildren )
|
||||||
{
|
{
|
||||||
m_statAccumulationMode = AccumulationMode::SelfOnly;
|
m_statAccumulationMode = AccumulationMode::SelfOnly;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user