(no commit message)
authorAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 00:49:53 +0000 (08:49 +0800)
committerAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 00:49:53 +0000 (08:49 +0800)
scene.c

diff --git a/scene.c b/scene.c
index d4c09fd..3216d15 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -187,11 +187,11 @@ void windowReshape(int w, int h) {
   glMatrixMode(GL_PROJECTION);\r
   glLoadIdentity();\r
   if (w <= h)\r
-    glFrustum(-near, far, -near*(GLfloat) h / (GLfloat) w,\r
-      far*(GLfloat) h / (GLfloat) w, nearClip, farClip);\r
+    glFrustum(-near, far, -near*((GLfloat) h / (GLfloat) w),\r
+      far*((GLfloat) h / (GLfloat) w), nearClip, farClip);\r
   else\r
-    glFrustum(-near*(GLfloat) w / (GLfloat) h,\r
-       far*(GLfloat) w / (GLfloat) h, near, far, nearClip, farClip);\r
+    glFrustum(-near*((GLfloat) w / (GLfloat) h),\r
+       far*((GLfloat) w / (GLfloat) h), near, far, nearClip, farClip);\r
   glMatrixMode(GL_MODELVIEW);\r
 }\r
 \r

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