git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5c9a1
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sun, 9 Oct 2011 06:48:15 +0000
(14:48 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sun, 9 Oct 2011 06:48:15 +0000
(14:48 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
457e23d
..
b85ed9f
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-469,7
+469,7
@@
void windowReshape(int w, int h) {
glLoadIdentity(); // Reset The Projection Matrix
\r
\r
// Calculate The Aspect Ratio Of The Window
\r
- gluPerspective(45.0f,
(GLfloat)w/(GLfloat)h
,0.1f,100.0f);
\r
+ gluPerspective(45.0f,
45.0f
,0.1f,100.0f);
\r
\r
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
\r
glLoadIdentity(); // Reset The Modelview Matrix
\r
UCC
git Repository :: git.ucc.asn.au