comparison src/video/windx5/SDL_dx5video.c @ 486:8b1c1ae7af11

Fixed a typo in a previous patch
author Sam Lantinga <slouken@libsdl.org>
date Mon, 02 Sep 2002 16:02:17 +0000
parents 0b0c2e63eb27
children f55cdaec12b9
comparison
equal deleted inserted replaced
485:ffa4ca907c67 486:8b1c1ae7af11
1136 y = (GetSystemMetrics(SM_CYSCREEN)-height)/2; 1136 y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
1137 if ( y < 0 ) { /* Cover up title bar for more client area */ 1137 if ( y < 0 ) { /* Cover up title bar for more client area */
1138 y -= GetSystemMetrics(SM_CYCAPTION)/2; 1138 y -= GetSystemMetrics(SM_CYCAPTION)/2;
1139 } 1139 }
1140 swp_flags = (SWP_NOCOPYBITS | SWP_FRAMECHANGED | SWP_SHOWWINDOW); 1140 swp_flags = (SWP_NOCOPYBITS | SWP_FRAMECHANGED | SWP_SHOWWINDOW);
1141 if ( was_visible && (video->flags & SDL_FULLSCREEN) ) { 1141 if ( was_visible && !(video->flags & SDL_FULLSCREEN) ) {
1142 swp_flags |= SWP_NOMOVE; 1142 swp_flags |= SWP_NOMOVE;
1143 } 1143 }
1144 if ( video->flags & SDL_FULLSCREEN ) { 1144 if ( video->flags & SDL_FULLSCREEN ) {
1145 top = HWND_TOPMOST; 1145 top = HWND_TOPMOST;
1146 } else { 1146 } else {