diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 66aa2556d..46796e805 100755 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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);