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