From 71afe748d9068eefceef10fd828c95e3a4c65606 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sun, 9 Oct 2011 15:11:21 +0800 Subject: [PATCH] --- scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1