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:
parent
03d1f00c86
commit
bda802b259
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user