From: Ash Tyndall Date: Fri, 21 Oct 2011 00:49:53 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f3ffdbeff05ea19ba064c32fa38c00aaa0482666;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index d4c09fd..3216d15 100644 --- a/scene.c +++ b/scene.c @@ -187,11 +187,11 @@ void windowReshape(int w, int h) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) - glFrustum(-near, far, -near*(GLfloat) h / (GLfloat) w, - far*(GLfloat) h / (GLfloat) w, nearClip, farClip); + glFrustum(-near, far, -near*((GLfloat) h / (GLfloat) w), + far*((GLfloat) h / (GLfloat) w), nearClip, farClip); else - glFrustum(-near*(GLfloat) w / (GLfloat) h, - far*(GLfloat) w / (GLfloat) h, near, far, nearClip, farClip); + glFrustum(-near*((GLfloat) w / (GLfloat) h), + far*((GLfloat) w / (GLfloat) h), near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); }