test/common.c
changeset 5304 59e6e16351e6
parent 5247 d844537c42fd
child 5349 02770b3c43f8
--- a/test/common.c	Tue Feb 15 21:57:31 2011 -0800
+++ b/test/common.c	Tue Feb 15 22:51:29 2011 -0800
@@ -154,6 +154,10 @@
             state->window_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display);
             state->window_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display);
         }
+        if (SDL_WINDOWPOS_ISCENTERED(state->window_x)) {
+            state->window_x = SDL_WINDOWPOS_CENTERED_DISPLAY(state->display);
+            state->window_y = SDL_WINDOWPOS_CENTERED_DISPLAY(state->display);
+        }
         return 2;
     }
     if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) {