Fix double precision issues.

This commit is contained in:
Bartosz Taudul 2017-09-22 21:35:06 +02:00
parent 8d67d59ff3
commit 7b3a0057ca

View File

@ -755,8 +755,8 @@ void View::DrawZones()
m_pause = true; m_pause = true;
const auto delta = ImGui::GetMouseDragDelta( 1, 0 ).x; const auto delta = ImGui::GetMouseDragDelta( 1, 0 ).x;
const auto nspx = double( timespan ) / w; const auto nspx = double( timespan ) / w;
m_zvStart -= delta * nspx; m_zvStart -= int64_t( delta * nspx );
m_zvEnd -= delta * nspx; m_zvEnd -= int64_t( delta * nspx );
io.MouseClickedPos[1].x = io.MousePos.x; io.MouseClickedPos[1].x = io.MousePos.x;
} }