From d361261993664c003529555e0f33f23e7c7862c7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Jun 2019 16:49:21 +0200 Subject: [PATCH] Open playback from frame using ctrl+left click. --- manual/tracy.tex | 2 +- server/TracyView.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/tracy.tex b/manual/tracy.tex index 5765dff0..db9e84ce 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -1297,7 +1297,7 @@ You can also see that there are frame separators, projected down to the rest of Clicking the \MMB{} middle mouse button on a frame will zoom the view to the extent of the frame. -If a frame has an associated frame image (see chapter~\ref{frameimages}), you can click the \RMB{}~right mouse button on it to open the frame image playback window (see chapter~\ref{playback}) and set the playback to the selected frame. +If a frame has an associated frame image (see chapter~\ref{frameimages}), you can hold the \keys{\ctrl} key and click the \LMB{}~left mouse button on the frame, to open the frame image playback window (see chapter~\ref{playback}) and set the playback to the selected frame. \paragraph{Zones, locks and plots display} \label{zoneslocksplots} diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2dc9024c..b6e7f068 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1681,7 +1681,7 @@ bool View::DrawZoneFrames( const FrameData& frames ) ImGui::Image( m_frameTexture, ImVec2( fi->w, fi->h ) ); } - if( ImGui::IsMouseClicked( 1 ) ) + if( ImGui::GetIO().KeyCtrl && ImGui::IsMouseClicked( 0 ) ) { m_showPlayback = true; m_playback.pause = true;