projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b101c3
)
Change projection transform so that the top row of teapots are now visible.
author
Karl Schultz
<kschultz@freedesktop.org>
Wed, 24 Sep 2003 17:34:32 +0000
(17:34 +0000)
committer
Karl Schultz
<kschultz@freedesktop.org>
Wed, 24 Sep 2003 17:34:32 +0000
(17:34 +0000)
progs/redbook/teapots.c
patch
|
blob
|
history
diff --git
a/progs/redbook/teapots.c
b/progs/redbook/teapots.c
index edca5441ece87838087a27ac355d37be56b2c987..fb7aed380ebc74ca34ef7b5edd359790c4d0a5cc 100644
(file)
--- 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, 1
6
.0 * (GLfloat) h / (GLfloat) w,
+ glOrtho(0.0, 16.0, 0.0, 1
8
.0 * (GLfloat) h / (GLfloat) w,
-10.0, 10.0);
else
- glOrtho(0.0, 16.0 * (GLfloat) w / (GLfloat) h, 0.0, 1
6
.0,
+ glOrtho(0.0, 16.0 * (GLfloat) w / (GLfloat) h, 0.0, 1
8
.0,
-10.0, 10.0);
glMatrixMode(GL_MODELVIEW);
}