From 0b850cf726fb7260acd296d45b22af98f19666db Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 20 May 2019 03:18:43 +0200 Subject: [PATCH] WindowServer: Allow sending up to 32 invalidation rects inline. Oops, it looks like I left the max inline rects limit at 1 while debugging this code.. We can fit 32 rects in a single WSAPI message without needing a second "extra data" message, so let's use the space we have! --- Servers/WindowServer/WSAPITypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Servers/WindowServer/WSAPITypes.h b/Servers/WindowServer/WSAPITypes.h index 071c138e81..09c956d85b 100644 --- a/Servers/WindowServer/WSAPITypes.h +++ b/Servers/WindowServer/WSAPITypes.h @@ -121,7 +121,7 @@ struct WSAPI_ServerMessage { int rect_count; }; - static const int max_inline_rect_count = 1; + static const int max_inline_rect_count = 32; union { char text[512]; WSAPI_Rect rects[32]; @@ -232,7 +232,7 @@ struct WSAPI_ClientMessage { int rect_count; }; - static const int max_inline_rect_count = 1; + static const int max_inline_rect_count = 32; union { char text[512]; WSAPI_Rect rects[max_inline_rect_count];