Patch from Haiku's Google Code-In student Daniel Marth, fixes an off-by-one issue in bwindow. SDL-1.2
authorSam Lantinga
Fri, 03 Dec 2010 16:55:25 -0800
branchSDL-1.2
changeset 4928930614179450
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
     1.1 --- a/src/video/bwindow/SDL_sysevents.cc	Sun Sep 19 08:56:53 2010 -0700
     1.2 +++ b/src/video/bwindow/SDL_sysevents.cc	Fri Dec 03 16:55:25 2010 -0800
     1.3 @@ -386,9 +386,9 @@
     1.4  		case B_DIRECT_MODIFY:
     1.5  			{
     1.6  				int32 width = info->window_bounds.right -
     1.7 -					info->window_bounds.left + 1;
     1.8 +					info->window_bounds.left;
     1.9  				int32 height = info->window_bounds.bottom -
    1.10 -					info->window_bounds.top + 1;
    1.11 +					info->window_bounds.top;
    1.12  				SDL_PrivateResize(width, height);
    1.13  				break;
    1.14  			}