(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index c62831e..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
@@ -285,7 +287,6 @@ void motion(int x, int y) {
       if ( buttonSelected == GLUT_LEFT_BUTTON ) {\r
         // w: rotate, h: zoom\r
         zoom += (y - starty);\r
-        printf("zoom is %f\n", zoom);\r
       } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
         // w: rotate, h: tilt\r
         camAngle += (y - starty);\r

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