src/video/windx5/SDL_dx5video.c
changeset 1882 339d733e3699
parent 1855 5ff2c01e475e
child 1895 c121d94672cb
child 3992 c75679dce60c
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Sat Jun 24 03:41:14 2006 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Sat Jun 24 04:30:01 2006 +0000
     1.3 @@ -1195,7 +1195,7 @@
     1.4  			bounds.top = SDL_windowY;
     1.5  			bounds.right = SDL_windowX+video->w;
     1.6  			bounds.bottom = SDL_windowY+video->h;
     1.7 -			AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
     1.8 +			AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0);
     1.9  			width = bounds.right-bounds.left;
    1.10  			height = bounds.bottom-bounds.top;
    1.11  			if ( (flags & SDL_FULLSCREEN) ) {
    1.12 @@ -1281,7 +1281,7 @@
    1.13  		bounds.top = 0;
    1.14  		bounds.right = GetSystemMetrics(SM_CXSCREEN);
    1.15  		bounds.bottom = GetSystemMetrics(SM_CYSCREEN);
    1.16 -		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
    1.17 +		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0);
    1.18  		SetWindowPos(SDL_Window, HWND_TOPMOST,
    1.19  			bounds.left, bounds.top, 
    1.20  			bounds.right - bounds.left,
    1.21 @@ -1598,7 +1598,7 @@
    1.22  			bounds.top = SDL_windowY;
    1.23  			bounds.right = SDL_windowX+video->w;
    1.24  			bounds.bottom = SDL_windowY+video->h;
    1.25 -			AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
    1.26 +			AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0);
    1.27  			width = bounds.right-bounds.left;
    1.28  			height = bounds.bottom-bounds.top;
    1.29  			if ( center ) {