diff src/video/windib/SDL_dibvideo.c @ 1882:339d733e3699

Fixed bug #258 Account for the menu height in AdjustWindowRectEx()
author Sam Lantinga <slouken@libsdl.org>
date Sat, 24 Jun 2006 04:30:01 +0000
parents 61f86f36afb9
children c121d94672cb b2f59aadec0d
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Sat Jun 24 03:41:14 2006 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Sat Jun 24 04:30:01 2006 +0000
@@ -785,7 +785,7 @@
 		bounds.top = SDL_windowY;
 		bounds.right = SDL_windowX+video->w;
 		bounds.bottom = SDL_windowY+video->h;
-		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
+		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0);
 		width = bounds.right-bounds.left;
 		height = bounds.bottom-bounds.top;
 		if ( (flags & SDL_FULLSCREEN) ) {