mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Fix double precision issues.
This commit is contained in:
parent
8d67d59ff3
commit
7b3a0057ca
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user