Fixed a typo in a previous patch

This commit is contained in:
Sam Lantinga
2002-09-02 16:02:17 +00:00
parent 61fbbba718
commit 4fcca27e9e

View File

@@ -1138,7 +1138,7 @@ SDL_Surface *DX5_SetVideoMode(_THIS, SDL_Surface *current,
y -= GetSystemMetrics(SM_CYCAPTION)/2;
}
swp_flags = (SWP_NOCOPYBITS | SWP_FRAMECHANGED | SWP_SHOWWINDOW);
if ( was_visible && (video->flags & SDL_FULLSCREEN) ) {
if ( was_visible && !(video->flags & SDL_FULLSCREEN) ) {
swp_flags |= SWP_NOMOVE;
}
if ( video->flags & SDL_FULLSCREEN ) {