|
@@ -1118,11 +1118,11 @@ SDL_UpdateFullscreenMode(SDL_Window * window, SDL_bool fullscreen)
|
|
|
}
|
|
|
|
|
|
/* only do the mode change if we want exclusive fullscreen */
|
|
|
- if ( ( window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP ) != SDL_WINDOW_FULLSCREEN_DESKTOP )
|
|
|
+ if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
|
|
SDL_SetDisplayModeForDisplay(display, &fullscreen_mode);
|
|
|
- else
|
|
|
+ } else {
|
|
|
SDL_SetDisplayModeForDisplay(display, NULL);
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
if (_this->SetWindowFullscreen) {
|
|
|
_this->SetWindowFullscreen(_this, other, display, SDL_TRUE);
|