Commit 0dd3c7c3 authored by Jan Möbius's avatar Jan Möbius

Dennis: Fixed aspect ratio calculations for CoordSys.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7017 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a6de1b0c
......@@ -235,7 +235,7 @@ draw(GLState& _state , unsigned int /*_drawMode*/)
_state.get_viewport(left, bottom, width, height);
if (width && height)
aspect = width / height;
aspect = (double)width / (double)height;
// Projection reset
_state.push_projection_matrix();
......@@ -386,7 +386,7 @@ CoordsysNode::pick(GLState& _state, PickTarget _target)
_state.get_viewport(left, bottom, width, height);
if (width && height)
aspect = width / height;
aspect = (double)width / (double)height;
// Projection reset
_state.push_projection_matrix();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment