Commit 18102e9c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wineps: Include the meta region in the clip region.

parent c3da0672
...@@ -88,8 +88,8 @@ void PSDRV_SetClip( PHYSDEV dev ) ...@@ -88,8 +88,8 @@ void PSDRV_SetClip( PHYSDEV dev )
return; return;
} }
hrgn = CreateRectRgn(0,0,0,0); hrgn = CreateRectRgn(0, 0, 0, 0);
if (GetClipRgn(dev->hdc, hrgn)) if (GetRandomRgn(dev->hdc, hrgn, 3) == 1) /* clip && meta */
{ {
PSDRV_WriteGSave(dev); PSDRV_WriteGSave(dev);
PSDRV_AddClip( dev, hrgn ); PSDRV_AddClip( dev, hrgn );
...@@ -104,11 +104,12 @@ void PSDRV_SetClip( PHYSDEV dev ) ...@@ -104,11 +104,12 @@ void PSDRV_SetClip( PHYSDEV dev )
void PSDRV_ResetClip( PHYSDEV dev ) void PSDRV_ResetClip( PHYSDEV dev )
{ {
PSDRV_PDEVICE *physDev = get_psdrv_dev( dev ); PSDRV_PDEVICE *physDev = get_psdrv_dev( dev );
HRGN hrgn = CreateRectRgn(0,0,0,0); HRGN hrgn;
BOOL empty;
if (physDev->pathdepth) return;
empty = !GetClipRgn(dev->hdc, hrgn); hrgn = CreateRectRgn(0, 0, 0, 0);
if(!empty && !physDev->pathdepth) if (GetRandomRgn(dev->hdc, hrgn, 3) == 1) /* clip && meta */
PSDRV_WriteGRestore(dev); PSDRV_WriteGRestore(dev);
DeleteObject(hrgn); DeleteObject(hrgn);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment