mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Add source diff radio button to compare menu.
Majority of this commit are whitespace changes.
This commit is contained in:
parent
c12505c19d
commit
359840bec0
@ -243,11 +243,20 @@ void View::DrawCompare()
|
||||
ImGui::RadioButton( "Zones", &m_compare.compareMode, 0 );
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton( "Frames", &m_compare.compareMode, 1 );
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton( "Source diff", &m_compare.compareMode, 2 );
|
||||
if( oldMode != m_compare.compareMode )
|
||||
{
|
||||
m_compare.Reset();
|
||||
}
|
||||
|
||||
if( m_compare.compareMode == 2 )
|
||||
{
|
||||
ImGui::Separator();
|
||||
ImGui::BeginChild( "##compare" );
|
||||
}
|
||||
else
|
||||
{
|
||||
bool findClicked = false;
|
||||
|
||||
if( m_compare.compareMode == 0 )
|
||||
@ -1067,6 +1076,7 @@ void View::DrawCompare()
|
||||
}
|
||||
ImGui::TreePop();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndChild();
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user