]> git.treefish.org Git - seamulator.git/blobdiff - seamulator.cpp
Formatting
[seamulator.git] / seamulator.cpp
index 92567f8f5146bba5e2295d078c43a479c3ba3a37..3d6a5397125afd4ae82ff378489d02f57299250e 100644 (file)
@@ -118,13 +118,15 @@ void glMouseFunc(int button, int state, int x, int y)
 
 void glMotionFunc(int x, int y)
 {
-  view.lookAlt = fmod(view.oldLookAlt +
-                (float)((y-view.fstMouseAngle[1])*2*M_PI/glutGet(GLUT_WINDOW_HEIGHT)),
-                (float)(2*M_PI));
-
-  view.lookAz = fmod(view.oldLookAz +
-               (float)((x-view.fstMouseAngle[0])*2*M_PI/glutGet(GLUT_WINDOW_WIDTH)),
-               (float)(2*M_PI));
+  view.lookAlt =
+    fmod(view.oldLookAlt +
+        (float)((y-view.fstMouseAngle[1])*2*M_PI/glutGet(GLUT_WINDOW_HEIGHT)),
+        (float)(2*M_PI));
+
+  view.lookAz =
+    fmod(view.oldLookAz +
+        (float)((x-view.fstMouseAngle[0])*2*M_PI/glutGet(GLUT_WINDOW_WIDTH)),
+        (float)(2*M_PI));
 
   updateView();
 }