mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-14 21:20:28 +00:00
Fixed which window we check flags for when updating fullscreen mode
This commit is contained in:
parent
8fc10ac95c
commit
e0e79419b6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue