mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 00:40:55 +00:00
Fix for bug #30140. The code was not converting the rectangle for
pattern drawing into device space. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5d8d6e9138
commit
96c82d4518
4 changed files with 28 additions and 4 deletions
|
@ -984,7 +984,13 @@ static void clip_svp_callback(void *data, int y, int start,
|
|||
|
||||
if (pattern != nil)
|
||||
{
|
||||
[self fillRect: NSMakeRect(x, y, w, h) withPattern: pattern];
|
||||
NSBezierPath *path;
|
||||
|
||||
path = [[NSBezierPath alloc] init];
|
||||
[path appendBezierPathWithRect: NSMakeRect(x, y, w, h)];
|
||||
[path transformUsingAffineTransform: ctm];
|
||||
[self fillPath: path withPattern: pattern];
|
||||
RELEASE(path);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue