mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +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
|
// frames
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@ -1039,6 +1041,13 @@ void View::DrawZones()
|
|||||||
ImGui::Text( "%s", buf );
|
ImGui::Text( "%s", buf );
|
||||||
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) );
|
ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
|
if( ImGui::IsMouseClicked( 2 ) )
|
||||||
|
{
|
||||||
|
m_zvStartNext = fbegin;
|
||||||
|
m_zvEndNext = fend;
|
||||||
|
m_pause = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( fbegin >= m_zvStart && fsz > 4 )
|
if( fbegin >= m_zvStart && fsz > 4 )
|
||||||
@ -1078,8 +1087,6 @@ void View::DrawZones()
|
|||||||
}
|
}
|
||||||
while( false );
|
while( false );
|
||||||
|
|
||||||
m_zvStartNext = 0;
|
|
||||||
|
|
||||||
// zones
|
// zones
|
||||||
const auto ostep = ImGui::GetFontSize();
|
const auto ostep = ImGui::GetFontSize();
|
||||||
int offset = 20;
|
int offset = 20;
|
||||||
|
Loading…
Reference in New Issue
Block a user