[Win32SS] Plug in Last Batch
authorjimtabor <james.tabor@reactos.org>
Thu, 9 May 2019 17:35:21 +0000 (12:35 -0500)
committerjimtabor <james.tabor@reactos.org>
Thu, 9 May 2019 17:35:21 +0000 (12:35 -0500)
Plugging in last batch after 12 years.

win32ss/gdi/gdi32/include/gdi32p.h
win32ss/gdi/ntgdi/dclife.c

index 3574850..c054bf1 100644 (file)
@@ -408,7 +408,7 @@ GdiAllocBatchCommand(
     else if (Cmd == GdiBCTextOut) cjSize = sizeof(GDIBSTEXTOUT);
     else if (Cmd == GdiBCExtTextOut) cjSize = sizeof(GDIBSEXTTEXTOUT);
     else if (Cmd == GdiBCSetBrushOrg) cjSize = sizeof(GDIBSSETBRHORG);
-    else if (Cmd == GdiBCExtSelClipRgn) cjSize = 0;
+    else if (Cmd == GdiBCExtSelClipRgn) cjSize = sizeof(GDIBSEXTSELCLPRGN);
     else if (Cmd == GdiBCSelObj) cjSize = sizeof(GDIBSOBJECT);
     else if (Cmd == GdiBCDelRgn) cjSize = sizeof(GDIBSOBJECT);
     else if (Cmd == GdiBCDelObj) cjSize = sizeof(GDIBSOBJECT);
index 3f25639..99d872a 100644 (file)
@@ -950,7 +950,7 @@ APIENTRY
 NtGdiDeleteObjectApp(HANDLE hobj)
 {
     /* Complete all pending operations */
-    NtGdiFlushUserBatch(); // FIXME: We shouldn't need this
+    //NtGdiFlushUserBatch(); // FIXME: We shouldn't need this
 
     if (GDI_HANDLE_IS_STOCKOBJ(hobj)) return TRUE;