From 35ed907a86960eecd655893efa23d16992c06b17 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 09:26:20 +0800 Subject: [PATCH] --- scene.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.20.1