Patch from Haiku's Google Code-In student Daniel Marth, fixes an off-by-one issue in bwindow. SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 03 Dec 2010 16:55:25 -0800
branchSDL-1.2
changeset 4928 930614179450
parent 4891 0d4756e57224
child 5077 8c88cae7911e
Patch from Haiku's Google Code-In student Daniel Marth, fixes an off-by-one issue in bwindow.
src/video/bwindow/SDL_sysevents.cc
--- a/src/video/bwindow/SDL_sysevents.cc	Sun Sep 19 08:56:53 2010 -0700
+++ b/src/video/bwindow/SDL_sysevents.cc	Fri Dec 03 16:55:25 2010 -0800
@@ -386,9 +386,9 @@
 		case B_DIRECT_MODIFY:
 			{
 				int32 width = info->window_bounds.right -
-					info->window_bounds.left + 1;
+					info->window_bounds.left;
 				int32 height = info->window_bounds.bottom -
-					info->window_bounds.top + 1;
+					info->window_bounds.top;
 				SDL_PrivateResize(width, height);
 				break;
 			}