changeset 4928:930614179450 SDL-1.2

Patch from Haiku's Google Code-In student Daniel Marth, fixes an off-by-one issue in bwindow.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 03 Dec 2010 16:55:25 -0800
parents 0d4756e57224
children 8c88cae7911e
files src/video/bwindow/SDL_sysevents.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 			}