From 38ebc2e9896f177484fcb5d0b3feaa9bd155bf42 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 17 Jun 2019 01:13:32 +0200 Subject: [PATCH] Add icon to "go to frame" button. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e3aa1450..8f326aa5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -9070,7 +9070,11 @@ void View::DrawGoToFrame() ImGui::Begin( "Go to frame", &m_goToFrame, ImGuiWindowFlags_AlwaysAutoResize ); ImGui::InputInt( "Frame", &frameNum ); frameNum = std::min( std::max( frameNum, 1 ), int( numFrames ) ); +#ifdef TRACY_EXTENDED_FONT + if( ImGui::Button( ICON_FA_CROSSHAIRS " Go to" ) ) +#else if( ImGui::Button( "Go to" ) ) +#endif { ZoomToRange( m_worker.GetFrameBegin( *m_frames, frameNum - frameOffset ), m_worker.GetFrameEnd( *m_frames, frameNum - frameOffset ) ); }