mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
Fixed handling of the initial window size.
This commit is contained in:
parent
b098c35b96
commit
aa0ea9891e
|
|
@ -242,7 +242,7 @@ main(int argc, char *argv[])
|
|||
continue;
|
||||
}
|
||||
|
||||
glViewport(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);
|
||||
glViewport(0, 0, state->window_w, state->window_h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user