From 8d565e46d643d7e914862155c72e9bec191f15cf Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Apr 2023 17:36:04 +0200 Subject: [PATCH] HandleTimelineMouse() doesn't need pxns parameter. --- server/TracyView.hpp | 2 +- server/TracyView_Timeline.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView.hpp b/server/TracyView.hpp index d2c9341d..05b6487a 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -285,7 +285,7 @@ private: void DrawGpuInfoChildren( const V& children, int64_t ztime ); void HandleRange( Range& range, int64_t timespan, const ImVec2& wpos, float w ); - void HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w, double& pxns ); + void HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w ); void HandleTimelineKeyboard( int64_t timespan, const ImVec2& wpos, float w ); void AddAnnotation( int64_t start, int64_t end ); diff --git a/server/TracyView_Timeline.cpp b/server/TracyView_Timeline.cpp index c7dff5d0..d9b0d70b 100644 --- a/server/TracyView_Timeline.cpp +++ b/server/TracyView_Timeline.cpp @@ -15,7 +15,7 @@ namespace tracy extern double s_time; -void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w, double& pxns ) +void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w ) { assert( timespan > 0 ); auto& io = ImGui::GetIO(); @@ -283,7 +283,7 @@ void View::DrawTimeline() v->range.StartFrame(); HandleRange( v->range, timespan, ImGui::GetCursorScreenPos(), w ); } - HandleTimelineMouse( timespan, ImGui::GetCursorScreenPos(), w, pxns ); + HandleTimelineMouse( timespan, ImGui::GetCursorScreenPos(), w ); } if( ImGui::IsWindowFocused( ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem ) ) {