Skip to content

Commit

Permalink
SDL 1.2 Windows: Fix other window positions/sizes when exiting fullsc…
Browse files Browse the repository at this point in the history
…reen (bug #3315, thanks Simon Hug!)
  • Loading branch information
slime73 committed May 23, 2016
1 parent 3d0f25b commit 3b1bd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/windib/SDL_dibvideo.c
Expand Up @@ -807,7 +807,7 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
} else {
#ifndef NO_CHANGEDISPLAYSETTINGS
if ( (prev_flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
ChangeDisplaySettings(NULL, 0);
ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
}
#endif
if ( flags & SDL_NOFRAME ) {
Expand Down Expand Up @@ -1186,7 +1186,7 @@ void DIB_VideoQuit(_THIS)
}
#ifndef NO_CHANGEDISPLAYSETTINGS
if ( this->screen->flags & SDL_FULLSCREEN ) {
ChangeDisplaySettings(NULL, 0);
ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
ShowWindow(SDL_Window, SW_HIDE);
}
#endif
Expand Down

0 comments on commit 3b1bd34

Please sign in to comment.