X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c7cd7a53a9a49e83dd388403d157231ac6abae4d;hp=61cddf9af0d3ee14e41b9ca69ac6d88636c2c67d;hb=f369e5b4fb935813043425ddde66098775615261;hpb=d3465c5cd0e6e9b414e669e8c8aa464b03f2fd24 diff --git a/scene.c b/scene.c index 61cddf9..c7cd7a5 100644 --- a/scene.c +++ b/scene.c @@ -18,7 +18,6 @@ #include "types.h" #include "scene.h" - /** * Event hander for main menu events * @param id ID of menu item selected @@ -189,10 +188,10 @@ void windowReshape(int w, int h) { glLoadIdentity(); if (w <= h) glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, - far*(GLfloat)h/(GLfloat)w, near, far); + far*(GLfloat)h/(GLfloat)w, -100, 100); else glOrtho(near*(GLfloat)w/(GLfloat)h, - far*(GLfloat)w/(GLfloat)h, near, far, near, far); + far*(GLfloat)w/(GLfloat)h, near, far, -100, 100); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); }