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.
This commit is contained in:
Huw Davies 2004-05-18 20:42:09 +00:00 committed by Alexandre Julliard
parent 7c1ca0f923
commit 4d00315345
1 changed files with 8 additions and 3 deletions

View File

@ -54,6 +54,11 @@ void PSDRV_SetClip( PSDRV_PDEVICE *physDev )
TRACE("hdc=%p\n", physDev->hdc);
if(physDev->pathdepth) {
TRACE("inside a path, so not clipping\n");
goto end;
}
empty = !GetClipRgn(physDev->hdc, hrgn);
if(!empty) {
@ -123,8 +128,8 @@ void PSDRV_ResetClip( PSDRV_PDEVICE *physDev )
HRGN hrgn = CreateRectRgn(0,0,0,0);
BOOL empty;
empty = !GetClipRgn(physDev->hdc, hrgn);
if(!empty)
PSDRV_WriteGRestore(physDev);
empty = !GetClipRgn(physDev->hdc, hrgn);
if(!empty && !physDev->pathdepth)
PSDRV_WriteGRestore(physDev);
DeleteObject(hrgn);
}