now uses DIRECT_BUFFER_INFO_AREA_SIZE as the direct_buffer_info area size

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28526 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-11-05 23:44:14 +00:00
parent 03d1f00c86
commit bda802b259

View File

@ -3325,7 +3325,7 @@ ServerWindow::HandleDirectConnection(int32 bufferState, int32 driverState)
fDirectWindowData->buffer_info->window_bounds = to_clipping_rect(fWindow->Frame()); fDirectWindowData->buffer_info->window_bounds = to_clipping_rect(fWindow->Frame());
// TODO: Review this // TODO: Review this
const int32 kMaxClipRectsCount = (B_PAGE_SIZE - sizeof(direct_buffer_info)) const int32 kMaxClipRectsCount = (DIRECT_BUFFER_INFO_AREA_SIZE - sizeof(direct_buffer_info))
/ sizeof(clipping_rect); / sizeof(clipping_rect);
// We just want the region inside the window, border excluded. // We just want the region inside the window, border excluded.