https://git.reactos.org/?p=reactos.git;a=commitdiff;h=290302219957caa44542b0f20ea9f596ff1c60b4

commit 290302219957caa44542b0f20ea9f596ff1c60b4
Author:     jimtabor <[email protected]>
AuthorDate: Sun Feb 9 11:28:19 2020 -0600
Commit:     jimtabor <[email protected]>
CommitDate: Sun Feb 9 11:28:19 2020 -0600

    [NtGDI] Use Vis Region for New Clip Region
    
    Interesting results while using VBOX-GA.
    Rolling back to Vis, wine throwback. See CORE-16680.
---
 win32ss/gdi/ntgdi/cliprgn.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/win32ss/gdi/ntgdi/cliprgn.c b/win32ss/gdi/ntgdi/cliprgn.c
index 163106ed1ce..0964f5559da 100644
--- a/win32ss/gdi/ntgdi/cliprgn.c
+++ b/win32ss/gdi/ntgdi/cliprgn.c
@@ -123,6 +123,7 @@ IntSelectClipRgn(
         {
             PREGION prgnClip;
             RECTL rcl;
+#if 0
             PSURFACE pSurface;
 
             // See IntSetDefaultRegion.
@@ -145,12 +146,14 @@ IntSelectClipRgn(
                 }
             }
             //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
+            REGION_GetRgnBox(dc->prgnVis, &rcl);
+
             prgnClip = IntSysCreateRectpRgnIndirect(&rcl);
 
             Ret = IntGdiCombineRgn(prgnNClip, prgnClip, prgn, fnMode);

Reply via email to