mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00: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()
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextUnformatted( "Timing" );
|
||||
ImGui::SameLine();
|
||||
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 );
|
||||
ImGui::Combo( "##accumulationMode", &accumulationMode, accumulationModeTable );
|
||||
m_statAccumulationMode = static_cast<AccumulationMode>( accumulationMode );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
}
|
||||
|
||||
void View::DrawStatistics()
|
||||
@ -12509,6 +12503,9 @@ void View::DrawStatistics()
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
TextFocused( "Visible zones:", RealToString( srcloc.size() ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
AccumulationModeComboBox();
|
||||
}
|
||||
else
|
||||
@ -12533,6 +12530,9 @@ void View::DrawStatistics()
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
AccumulationModeComboBox();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
Loading…
Reference in New Issue
Block a user