From: Ash Tyndall Date: Sun, 9 Oct 2011 07:11:21 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=sidebyside;h=71afe748d9068eefceef10fd828c95e3a4c65606;hp=1f911126b87d5e8f7788738b970836a6b8ba11c1;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 8905850..4852a51 100644 --- a/scene.c +++ b/scene.c @@ -469,9 +469,9 @@ void windowReshape(int width, int height) { glLoadIdentity(); if (width <= height) - gluPerspective(60, (GLfloat)height / (GLfloat)width, 0.1, 1000.0); + gluPerspective(60, (GLfloat)width / (GLfloat) height, 0.1, 1000.0); else - gluPerspective(60, (GLfloat)width / (GLfloat)height, 0.1, 1000.0); + gluPerspective(60, (GLfloat)height / (GLfloat) width, 0.1, 1000.0); glMatrixMode(GL_MODELVIEW); /*glViewport(0, 0, w, h);