mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
dont change the path in DPSrectstroke
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13799 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a7e27dda44
commit
4d7583c891
1 changed files with 5 additions and 4 deletions
|
@ -662,18 +662,19 @@ HBITMAP GSCreateBitmap(HDC hDC, int pixelsWide, int pixelsHigh,
|
|||
|
||||
- (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];
|
||||
// Samll adjustment so that the line is visible
|
||||
if (rect.size.width > 0)
|
||||
rect.size.width--;
|
||||
if (rect.size.height > 0)
|
||||
rect.size.height--;
|
||||
rect.origin.y += 1;
|
||||
|
||||
ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]);
|
||||
//NSLog(@"Stroke rect %@", NSStringFromRect(rect));
|
||||
path = [NSBezierPath bezierPathWithRect: rect];
|
||||
[self DPSstroke];
|
||||
path = oldPath;
|
||||
}
|
||||
|
||||
- (void)DPSrectclip: (float)x : (float)y : (float)w : (float)h
|
||||
|
|
Loading…
Reference in a new issue