From c3872b6d5b780e5a45fe5357966a4162d148acfb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 28 Sep 2012 14:00:43 -0700 Subject: [PATCH] Don't warn about the window size changing if the window is resizable --- test/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/common.c b/test/common.c index c09cc2db5..fb6411c36 100644 --- a/test/common.c +++ b/test/common.c @@ -736,7 +736,8 @@ CommonInit(CommonState * state) 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;