From 55df6324fae811b5ce8f196ea48e41c67ed3c584 Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 9 May 2011 23:02:13 +0100 Subject: [PATCH] Slightly more sensible mouse handling. --- examples/Basic/OpenGLWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Basic/OpenGLWidget.cpp b/examples/Basic/OpenGLWidget.cpp index 6f5e3b64..d0f4adc0 100644 --- a/examples/Basic/OpenGLWidget.cpp +++ b/examples/Basic/OpenGLWidget.cpp @@ -110,8 +110,8 @@ void OpenGLWidget::paintGL() glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glTranslatef(0.0f,0.0f,-100.0f); //Centre volume and move back - glRotatef(m_xRotation, 1.0f, 0.0f, 0.0f); - glRotatef(m_yRotation, 0.0f, 1.0f, 0.0f); + glRotatef(-m_xRotation, 0.0f, 1.0f, 0.0f); + glRotatef(-m_yRotation, 1.0f, 0.0f, 0.0f); glTranslatef(-32.0f,-32.0f,-32.0f); //Centre volume and move back //Bind the index buffer