Don't warn about the window size changing if the window is resizable
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Sep 2012 14:00:43 -0700
changeset 6503 8ff31baded38
parent 6502 f41a82de351e
child 6504 100c49578dba
Don't warn about the window size changing if the window is resizable
test/common.c
--- a/test/common.c	Fri Sep 28 11:51:16 2012 -0700
+++ b/test/common.c	Fri Sep 28 14:00:43 2012 -0700
@@ -736,7 +736,8 @@
                 return SDL_FALSE;
             }
             SDL_GetWindowSize(state->windows[i], &w, &h);
-            if (w != state->window_w || h != state->window_h) {
+            if (!(state->window_flags & SDL_WINDOW_RESIZABLE) &&
+                (w != state->window_w || h != state->window_h)) {
                 printf("Window requested size %dx%d, got %dx%d\n", state->window_w, state->window_h, w, h);
                 state->window_w = w;
                 state->window_h = h;