mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
ZoomToRange() already enables pause.
This commit is contained in:
parent
a3834a75f7
commit
1cddf8436c
@ -810,7 +810,6 @@ bool View::DrawZoneFrames()
|
|||||||
if( ImGui::IsMouseClicked( 2 ) )
|
if( ImGui::IsMouseClicked( 2 ) )
|
||||||
{
|
{
|
||||||
ZoomToRange( fbegin, fend );
|
ZoomToRange( fbegin, fend );
|
||||||
m_pause = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3273,7 +3272,6 @@ void View::DrawMessages()
|
|||||||
ImGui::PushID( v );
|
ImGui::PushID( v );
|
||||||
if( ImGui::Selectable( TimeToString( v->time - m_worker.GetFrameBegin( 0 ) ), m_msgHighlight == v, ImGuiSelectableFlags_SpanAllColumns ) )
|
if( ImGui::Selectable( TimeToString( v->time - m_worker.GetFrameBegin( 0 ) ), m_msgHighlight == v, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||||
{
|
{
|
||||||
m_pause = true;
|
|
||||||
const auto hr = std::max<uint64_t>( 1, ( m_zvEnd - m_zvStart ) / 2 );
|
const auto hr = std::max<uint64_t>( 1, ( m_zvEnd - m_zvStart ) / 2 );
|
||||||
ZoomToRange( v->time - hr, v->time + hr );
|
ZoomToRange( v->time - hr, v->time + hr );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user