mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Ctrl-click on frame in frame overview to show playback window.
This commit is contained in:
parent
f125254d14
commit
a8dcd5d153
@ -994,6 +994,17 @@ void View::DrawFrames()
|
|||||||
}
|
}
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
|
if( io.KeyCtrl )
|
||||||
|
{
|
||||||
|
if( fi && ImGui::IsMouseDown( 0 ) )
|
||||||
|
{
|
||||||
|
m_showPlayback = true;
|
||||||
|
m_playback.pause = true;
|
||||||
|
SetPlaybackFrame( m_frames->frames[sel].frameImage );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if( ImGui::IsMouseClicked( 0 ) )
|
if( ImGui::IsMouseClicked( 0 ) )
|
||||||
{
|
{
|
||||||
m_pause = true;
|
m_pause = true;
|
||||||
@ -1010,6 +1021,7 @@ void View::DrawFrames()
|
|||||||
ZoomToRange( t0, t1 );
|
ZoomToRange( t0, t1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( m_pause && wheel != 0 )
|
if( m_pause && wheel != 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user