Fixed handling of the initial window size.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404085
This commit is contained in:
parent
0ce7835ad6
commit
b0a410eb46
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ main(int argc, char *argv[])
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
glViewport(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);
|
glViewport(0, 0, state->window_w, state->window_h);
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);
|
glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue