From 7b3a0057cadf835ff609fe859a0c5c67d93fb8ca Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 22 Sep 2017 21:35:06 +0200 Subject: [PATCH] Fix double precision issues. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7ad0ac62..8ccbf8d1 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -755,8 +755,8 @@ void View::DrawZones() m_pause = true; const auto delta = ImGui::GetMouseDragDelta( 1, 0 ).x; const auto nspx = double( timespan ) / w; - m_zvStart -= delta * nspx; - m_zvEnd -= delta * nspx; + m_zvStart -= int64_t( delta * nspx ); + m_zvEnd -= int64_t( delta * nspx ); io.MouseClickedPos[1].x = io.MousePos.x; }