mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Move responsibility for spacing of combo box
Thereby fix a spurious horizontal separator bar.
This commit is contained in:
parent
d6fd252ce4
commit
68ec7abdf4
@ -12273,9 +12273,6 @@ struct SrcLocZonesSlim
|
|||||||
|
|
||||||
void View::AccumulationModeComboBox()
|
void View::AccumulationModeComboBox()
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
|
||||||
ImGui::Spacing();
|
|
||||||
ImGui::SameLine();
|
|
||||||
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 == 0 ? "Self only\0With children\0Non-reentrant\0" : "Self only\0With children\0";
|
||||||
@ -12287,9 +12284,6 @@ void View::AccumulationModeComboBox()
|
|||||||
int accumulationMode = static_cast<int>( m_statAccumulationMode );
|
int accumulationMode = static_cast<int>( m_statAccumulationMode );
|
||||||
ImGui::Combo( "##accumulationMode", &accumulationMode, accumulationModeTable );
|
ImGui::Combo( "##accumulationMode", &accumulationMode, accumulationModeTable );
|
||||||
m_statAccumulationMode = static_cast<AccumulationMode>( accumulationMode );
|
m_statAccumulationMode = static_cast<AccumulationMode>( accumulationMode );
|
||||||
ImGui::SameLine();
|
|
||||||
ImGui::Spacing();
|
|
||||||
ImGui::SameLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::DrawStatistics()
|
void View::DrawStatistics()
|
||||||
@ -12509,6 +12503,9 @@ void View::DrawStatistics()
|
|||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextFocused( "Visible zones:", RealToString( srcloc.size() ) );
|
TextFocused( "Visible zones:", RealToString( srcloc.size() ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
AccumulationModeComboBox();
|
AccumulationModeComboBox();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -12533,6 +12530,9 @@ void View::DrawStatistics()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
AccumulationModeComboBox();
|
AccumulationModeComboBox();
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user