mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07: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:
parent
d791bce6af
commit
0b850cf726
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ struct WSAPI_ServerMessage {
|
||||||
int rect_count;
|
int rect_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int max_inline_rect_count = 1;
|
static const int max_inline_rect_count = 32;
|
||||||
union {
|
union {
|
||||||
char text[512];
|
char text[512];
|
||||||
WSAPI_Rect rects[32];
|
WSAPI_Rect rects[32];
|
||||||
|
@ -232,7 +232,7 @@ struct WSAPI_ClientMessage {
|
||||||
int rect_count;
|
int rect_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int max_inline_rect_count = 1;
|
static const int max_inline_rect_count = 32;
|
||||||
union {
|
union {
|
||||||
char text[512];
|
char text[512];
|
||||||
WSAPI_Rect rects[max_inline_rect_count];
|
WSAPI_Rect rects[max_inline_rect_count];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue