From a7e27dda444f0365e8d012dfde532ca0bcaaa928 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Fri, 7 Jun 2002 23:19:41 +0000 Subject: [PATCH] Corrected last change git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13798 72102866-910b-0410-8b05-ffd578937521 --- Source/gsc/GSGState.m | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Source/gsc/GSGState.m b/Source/gsc/GSGState.m index fbf509e..94f7ee5 100644 --- a/Source/gsc/GSGState.m +++ b/Source/gsc/GSGState.m @@ -733,29 +733,32 @@ - (void) DPSrectclip: (float)x : (float)y : (float)w : (float)h { - NSRect rect = NSMakeRect(x, y, w, h); + NSRect rect = [ctm rectInMatrixSpace: NSMakeRect(x, y, w, h)]; + NSBezierPath *oldPath = path; - rect = [ctm rectInMatrixSpace: rect]; - ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]); + path = [NSBezierPath bezierPathWithRect: rect]; [self DPSclip]; + path = oldPath; } - (void) DPSrectfill: (float)x : (float)y : (float)w : (float)h { - NSRect rect = NSMakeRect(x, y, w, h); + NSRect rect = [ctm rectInMatrixSpace: NSMakeRect(x, y, w, h)]; + NSBezierPath *oldPath = path; - rect = [ctm rectInMatrixSpace: rect]; - ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]); + path = [NSBezierPath bezierPathWithRect: rect]; [self DPSfill]; + path = oldPath; } - (void) DPSrectstroke: (float)x : (float)y : (float)w : (float)h { - NSRect rect = NSMakeRect(x, y, w, h); + NSRect rect = [ctm rectInMatrixSpace: NSMakeRect(x, y, w, h)]; + NSBezierPath *oldPath = path; - rect = [ctm rectInMatrixSpace: rect]; - ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]); + path = [NSBezierPath bezierPathWithRect: rect]; [self DPSstroke]; + path = oldPath; } - (void)DPSreversepath