From bda802b259176e4cafda17cc9890a2b90d16a181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 5 Nov 2008 23:44:14 +0000 Subject: [PATCH] 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 --- src/servers/app/ServerWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index 63b754243e..19b2138dd0 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -3325,7 +3325,7 @@ ServerWindow::HandleDirectConnection(int32 bufferState, int32 driverState) fDirectWindowData->buffer_info->window_bounds = to_clipping_rect(fWindow->Frame()); // 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); // We just want the region inside the window, border excluded.