# HG changeset patch # User Mike Gorchak # Date 1255457662 0 # Node ID c64ae6ee6a6da5b089b8ba6d56476be89f906aa8 # Parent d6b79fc83362f225501a8f2900e5d461cdf66643 Fixed handling of the initial window size. diff -r d6b79fc83362 -r c64ae6ee6a6d test/testgles.c --- a/test/testgles.c Tue Oct 13 11:26:40 2009 +0000 +++ b/test/testgles.c Tue Oct 13 18:14:22 2009 +0000 @@ -242,7 +242,7 @@ 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);