Commit b0a410eb authored by Mike Gorchak's avatar Mike Gorchak

Fixed handling of the initial window size.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404085
parent 0ce7835a
...@@ -242,7 +242,7 @@ main(int argc, char *argv[]) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment