mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:20:49 +00:00
*** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5796 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8f44538eac
commit
e705674054
2 changed files with 21 additions and 2 deletions
|
@ -777,8 +777,22 @@ NSPoint rotatePoint(NSPoint p, NSPoint centre, float angle);
|
|||
associatedPoints:(NSPoint *)points
|
||||
{
|
||||
PathElement *elm = [pathElements objectAtIndex: index];
|
||||
points = [elm points];
|
||||
return [elm type];
|
||||
NSBezierPathElementType type = [elm type];
|
||||
NSPoint *p = [elm points];
|
||||
|
||||
if(type == NSBezierPathElementMoveTo || type == NSBezierPathElementLineTo) {
|
||||
points[0].x = p[0].x;
|
||||
points[0].y = p[0].y;
|
||||
} else if(type == NSBezierPathElementCurveTo) {
|
||||
points[0].x = p[0].x;
|
||||
points[0].y = p[0].y;
|
||||
points[1].x = p[1].x;
|
||||
points[1].y = p[1].y;
|
||||
points[2].x = p[2].x;
|
||||
points[2].y = p[2].y;
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
|
||||
- (void)removeLastElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue