X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=0f3cbfe4eb91ac4da9f12ebd8e8c99f8ac15393e;hp=5c9b14d0ebd71ba80b81871ea8fab7521eebbd88;hb=cbaab2d9bafd23eff37c1c595a32d0afb437eecf;hpb=7557493a58d7ab3972efa6933f47b3fbae3d4b2c diff --git a/scene.c b/scene.c index 5c9b14d..0f3cbfe 100644 --- a/scene.c +++ b/scene.c @@ -468,7 +468,7 @@ void windowReshape(int width, int height) { printf("Width: %d, height: %d\n", width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective( (500* 60) / width, 1, 0.1, 1000.0); + gluPerspective( (60/500) * width, 1, 0.1, 1000.0); glMatrixMode(GL_MODELVIEW); }