diff options
author | Karl Schultz <kschultz@freedesktop.org> | 2003-09-24 17:34:32 +0000 |
---|---|---|
committer | Karl Schultz <kschultz@freedesktop.org> | 2003-09-24 17:34:32 +0000 |
commit | 2c9618bb1290d23bd7fa52bece48608fbd92626a (patch) | |
tree | faa7f3fc3bd3db511d9321badf8507a67de204fe /progs/redbook | |
parent | 9b101c34da4d8c4831e1d8d574061de1de84eb49 (diff) | |
download | external_mesa3d-2c9618bb1290d23bd7fa52bece48608fbd92626a.zip external_mesa3d-2c9618bb1290d23bd7fa52bece48608fbd92626a.tar.gz external_mesa3d-2c9618bb1290d23bd7fa52bece48608fbd92626a.tar.bz2 |
Change projection transform so that the top row of teapots are now visible.
Diffstat (limited to 'progs/redbook')
-rw-r--r-- | progs/redbook/teapots.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/redbook/teapots.c b/progs/redbook/teapots.c index edca544..fb7aed3 100644 --- a/progs/redbook/teapots.c +++ b/progs/redbook/teapots.c @@ -180,10 +180,10 @@ myReshape(int w, int h) glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) - glOrtho(0.0, 16.0, 0.0, 16.0 * (GLfloat) h / (GLfloat) w, + glOrtho(0.0, 16.0, 0.0, 18.0 * (GLfloat) h / (GLfloat) w, -10.0, 10.0); else - glOrtho(0.0, 16.0 * (GLfloat) w / (GLfloat) h, 0.0, 16.0, + glOrtho(0.0, 16.0 * (GLfloat) w / (GLfloat) h, 0.0, 18.0, -10.0, 10.0); glMatrixMode(GL_MODELVIEW); } |