src/video/windx5/SDL_dx5video.c
changeset 486 8b1c1ae7af11
parent 468 0b0c2e63eb27
child 525 f55cdaec12b9
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 {