Patch from GCI student Daniel Marth, fixes an off-by-one issue.

This commit is contained in:
Scott McCreary
2010-11-30 21:24:19 +00:00
parent 4a90ac5b8a
commit 82808c969d

View File

@@ -0,0 +1,15 @@
diff -r 0d4756e57224 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 Tue Nov 30 13:38:17 2010 +0000
@@ -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;
}