[NtGDI] Use Vis Region for New Clip Region
authorjimtabor <james.tabor@reactos.org>
Sun, 9 Feb 2020 17:28:19 +0000 (11:28 -0600)
committerjimtabor <james.tabor@reactos.org>
Sun, 9 Feb 2020 17:28:19 +0000 (11:28 -0600)
Interesting results while using VBOX-GA.
Rolling back to Vis, wine throwback. See CORE-16680.

win32ss/gdi/ntgdi/cliprgn.c

index 163106e..0964f55 100644 (file)
@@ -123,6 +123,7 @@ IntSelectClipRgn(
         {
             PREGION prgnClip;
             RECTL rcl;
         {
             PREGION prgnClip;
             RECTL rcl;
+#if 0
             PSURFACE pSurface;
 
             // See IntSetDefaultRegion.
             PSURFACE pSurface;
 
             // See IntSetDefaultRegion.
@@ -145,12 +146,14 @@ IntSelectClipRgn(
                 }
             }
             //EngReleaseSemaphore(pdc->ppdev->hsemDevLock);
                 }
             }
             //EngReleaseSemaphore(pdc->ppdev->hsemDevLock);
-#if 0
+//#if 0
             rcl.left   += dc->ptlDCOrig.x;
             rcl.top    += dc->ptlDCOrig.y;
             rcl.right  += dc->ptlDCOrig.x;
             rcl.bottom += dc->ptlDCOrig.y;
 #endif
             rcl.left   += dc->ptlDCOrig.x;
             rcl.top    += dc->ptlDCOrig.y;
             rcl.right  += dc->ptlDCOrig.x;
             rcl.bottom += dc->ptlDCOrig.y;
 #endif
+            REGION_GetRgnBox(dc->prgnVis, &rcl);
+
             prgnClip = IntSysCreateRectpRgnIndirect(&rcl);
 
             Ret = IntGdiCombineRgn(prgnNClip, prgnClip, prgn, fnMode);
             prgnClip = IntSysCreateRectpRgnIndirect(&rcl);
 
             Ret = IntGdiCombineRgn(prgnNClip, prgnClip, prgn, fnMode);