(no commit message)
authorAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 02:56:54 +0000 (10:56 +0800)
committerAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 02:56:54 +0000 (10:56 +0800)
scene.c

diff --git a/scene.c b/scene.c
index f544aae..d9a4ea3 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -256,8 +256,8 @@ void keyboard(unsigned char key, int x, int y) {
  */\r
 void motion(int x, int y) {\r
   if (moving) {\r
-    zoomFactor += (x - startx);\r
-    rotateFactor += (y - starty);\r
+    zoomFactor += (y - starty);\r
+    rotateFactor += (x - startx);\r
     startx = x;\r
     starty = y;\r
     glutPostRedisplay();\r

UCC git Repository :: git.ucc.asn.au