Fixed which window we check flags for when updating fullscreen mode
This commit is contained in:
1 parent
8fc10ac95c
commit
e0e79419b6
1 file changed
+1
-1
@@ -1446,7 +1446,7 @@ static int SDL_UpdateFullscreenMode(SDL_Window *window, SDL_bool fullscreen)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* only do the mode change if we want exclusive fullscreen */
|
/* only do the mode change if we want exclusive fullscreen */
|
||||||
if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
if ((other->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
||||||
if (SDL_SetDisplayModeForDisplay(display, &fullscreen_mode) < 0) {
|
if (SDL_SetDisplayModeForDisplay(display, &fullscreen_mode) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user