Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't warn about the window size changing if the window is resizable
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 28, 2012
1 parent 4232c90 commit c3872b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/common.c
Expand Up @@ -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;
Expand Down

0 comments on commit c3872b6

Please sign in to comment.