src/video/windib/SDL_dibvideo.c
changeset 1882 339d733e3699
parent 1881 61f86f36afb9
child 1895 c121d94672cb
child 3868 b2f59aadec0d
equal deleted inserted replaced
1881:61f86f36afb9 1882:339d733e3699
   783 
   783 
   784 		bounds.left = SDL_windowX;
   784 		bounds.left = SDL_windowX;
   785 		bounds.top = SDL_windowY;
   785 		bounds.top = SDL_windowY;
   786 		bounds.right = SDL_windowX+video->w;
   786 		bounds.right = SDL_windowX+video->w;
   787 		bounds.bottom = SDL_windowY+video->h;
   787 		bounds.bottom = SDL_windowY+video->h;
   788 		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
   788 		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0);
   789 		width = bounds.right-bounds.left;
   789 		width = bounds.right-bounds.left;
   790 		height = bounds.bottom-bounds.top;
   790 		height = bounds.bottom-bounds.top;
   791 		if ( (flags & SDL_FULLSCREEN) ) {
   791 		if ( (flags & SDL_FULLSCREEN) ) {
   792 			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
   792 			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
   793 			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
   793 			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;