(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index c7cd7a5..95c19c5 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -191,7 +191,7 @@ void windowReshape(int w, int h) {
              far*(GLfloat)h/(GLfloat)w, -100, 100);\r
   else\r
     glOrtho(near*(GLfloat)w/(GLfloat)h,\r
-             far*(GLfloat)w/(GLfloat)h, near, far, -100, 100);\r
+             far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip);\r
    glMatrixMode(GL_MODELVIEW); \r
    glLoadIdentity();\r
 }\r
@@ -285,7 +285,7 @@ void display() {
     \r
     // Draw teapot for a test object\r
     glPushMatrix();\r
-      glTranslatef(0.0, 0.5, 0.0); // **NOTE: Teapot does not rest on surface\r
+      glTranslatef(0.0, 1.0, 0.0); // **NOTE: Teapot does not rest on surface\r
       glColor3f(0.5, 0.5, 0.5);\r
       glutSolidTeapot(1);\r
     glPopMatrix();\r

UCC git Repository :: git.ucc.asn.au