1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

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!
This commit is contained in:
Andreas Kling 2019-05-20 03:18:43 +02:00
parent d791bce6af
commit 0b850cf726

View file

@ -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];