Browse Source

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!
Andreas Kling 6 years ago
parent
commit
0b850cf726
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Servers/WindowServer/WSAPITypes.h

+ 2 - 2
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];