Don't warn about the window size changing if the window is resizable
This commit is contained in:
parent
49cba901a5
commit
b40f346c7e
1 changed files with 2 additions and 1 deletions
|
@ -736,7 +736,8 @@ CommonInit(CommonState * state)
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
SDL_GetWindowSize(state->windows[i], &w, &h);
|
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);
|
printf("Window requested size %dx%d, got %dx%d\n", state->window_w, state->window_h, w, h);
|
||||||
state->window_w = w;
|
state->window_w = w;
|
||||||
state->window_h = h;
|
state->window_h = h;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue