From 2c9618bb1290d23bd7fa52bece48608fbd92626a Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Wed, 24 Sep 2003 17:34:32 +0000 Subject: [PATCH] Change projection transform so that the top row of teapots are now visible. --- progs/redbook/teapots.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/progs/redbook/teapots.c b/progs/redbook/teapots.c index edca5441ece..fb7aed380eb 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); }