From: Ash Tyndall Date: Fri, 21 Oct 2011 01:26:20 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=35ed907a86960eecd655893efa23d16992c06b17;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index af2d52c..9b4db15 100644 --- a/scene.c +++ b/scene.c @@ -291,8 +291,7 @@ void display() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); - float aspect = (float)height / (float)width; - if ( width > height ) aspect = (float)width / (float)height; + float aspect = (float)width / (float)height; gluPerspective( 75.0, @@ -321,7 +320,7 @@ void display() { glPushMatrix(); /* Perform scene rotations based on user mouse/keyboard input. */ - glRotatef(angle, 0.0, 0.0,1.0); + glRotatef(angle, 0.0, 1.0, 0.0); glRotatef(angle2, 1.0, 0.0, 0.0); glTranslatef(camx, camy, camz); glRotatef(rot, 1.0, 0.0, 0.0);