X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=9b4db15fb54083dedfff868d290126179fd72984;hp=bd927d9bb5324400254c8bdd581af10cb1a647da;hb=35ed907a86960eecd655893efa23d16992c06b17;hpb=874481319bb04b6e86e77a07679d1f10f8a38875 diff --git a/scene.c b/scene.c index bd927d9..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,