Fix integer division that should be floating point

Introduced by unintended conversion of expression from double to int in
b5a554b9a6 (Avoid -Wdouble-promotion warnings, 2020-10-14)
This commit is contained in:
Paul Cornett
2020-10-18 17:59:54 -07:00
parent b4483e42bd
commit f6ee5147ae

View File

@@ -246,8 +246,8 @@ void TestGLCanvas::OnMouse(wxMouseEvent& event)
trackball(spin_quat,
(2 * m_gldata.beginx - sz.x) / sz.x,
(sz.y - 2 * m_gldata.beginy) / sz.y,
(2 * event.GetX() - sz.x) / sz.x,
(sz.y - 2 * event.GetY()) / sz.y);
float(2 * event.GetX() - sz.x) / sz.x,
float(sz.y - 2 * event.GetY()) / sz.y);
add_quats(spin_quat, m_gldata.quat, m_gldata.quat);