Commit 4d003153 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

When building PostScript paths with the *_PATH escapes, don't clip the

path building primitives. The clipping comes into play when we actually draw something.
parent 7c1ca0f9
...@@ -54,6 +54,11 @@ void PSDRV_SetClip( PSDRV_PDEVICE *physDev ) ...@@ -54,6 +54,11 @@ void PSDRV_SetClip( PSDRV_PDEVICE *physDev )
TRACE("hdc=%p\n", physDev->hdc); TRACE("hdc=%p\n", physDev->hdc);
if(physDev->pathdepth) {
TRACE("inside a path, so not clipping\n");
goto end;
}
empty = !GetClipRgn(physDev->hdc, hrgn); empty = !GetClipRgn(physDev->hdc, hrgn);
if(!empty) { if(!empty) {
...@@ -123,8 +128,8 @@ void PSDRV_ResetClip( PSDRV_PDEVICE *physDev ) ...@@ -123,8 +128,8 @@ void PSDRV_ResetClip( PSDRV_PDEVICE *physDev )
HRGN hrgn = CreateRectRgn(0,0,0,0); HRGN hrgn = CreateRectRgn(0,0,0,0);
BOOL empty; BOOL empty;
empty = !GetClipRgn(physDev->hdc, hrgn); empty = !GetClipRgn(physDev->hdc, hrgn);
if(!empty) if(!empty && !physDev->pathdepth)
PSDRV_WriteGRestore(physDev); PSDRV_WriteGRestore(physDev);
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