(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index e2e8cd2..2410cd1 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -206,6 +206,8 @@ void mouse(int button, int state, int x, int y) {
       } else if ( state == GLUT_UP ) {\r
         buttonSelected = -1;\r
       }\r
+      startx = x;\r
+      starty = y;\r
       break;\r
   }\r
 }\r
@@ -284,7 +286,7 @@ void motion(int x, int y) {
 \r
       if ( buttonSelected == GLUT_LEFT_BUTTON ) {\r
         // w: rotate, h: zoom\r
-        zoom += (y - starty);       \r
+        zoom += (y - starty);\r
       } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
         // w: rotate, h: tilt\r
         camAngle += (y - starty);\r

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