Patch from Haiku's Google Code-In student Daniel Marth, fixes an off-by-one issue in bwindow.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2010-12-03 16:55:25 -08:00
parent 59a374b27d
commit d4ac198b04

View File

@@ -386,9 +386,9 @@ void SDL_BWin::DirectConnected(direct_buffer_info *info) {
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;
}