mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Add zoom-to-frame.
This commit is contained in:
parent
dd0c283a3b
commit
e6a32c1af5
@ -1011,6 +1011,8 @@ void View::DrawZones()
|
||||
}
|
||||
}
|
||||
|
||||
m_zvStartNext = 0;
|
||||
|
||||
// frames
|
||||
do
|
||||
{
|
||||
@ -1039,6 +1041,13 @@ void View::DrawZones()
|
||||
ImGui::Text( "%s", buf );
|
||||
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) );
|
||||
ImGui::EndTooltip();
|
||||
|
||||
if( ImGui::IsMouseClicked( 2 ) )
|
||||
{
|
||||
m_zvStartNext = fbegin;
|
||||
m_zvEndNext = fend;
|
||||
m_pause = true;
|
||||
}
|
||||
}
|
||||
|
||||
if( fbegin >= m_zvStart && fsz > 4 )
|
||||
@ -1078,8 +1087,6 @@ void View::DrawZones()
|
||||
}
|
||||
while( false );
|
||||
|
||||
m_zvStartNext = 0;
|
||||
|
||||
// zones
|
||||
const auto ostep = ImGui::GetFontSize();
|
||||
int offset = 20;
|
||||
|
Loading…
Reference in New Issue
Block a user