diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-20 03:18:43 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-20 03:18:43 +0200 |
commit | 0b850cf726fb7260acd296d45b22af98f19666db (patch) | |
tree | 07c2b2755b5aed488f5ee04a49feca8751da7475 | |
parent | d791bce6afca371d3a664dc06fdd8174a358a9d9 (diff) | |
download | serenity-0b850cf726fb7260acd296d45b22af98f19666db.zip |
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!
-rw-r--r-- | Servers/WindowServer/WSAPITypes.h | 4 |
1 files 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]; |