Implemented [GSSendBezierPath:].

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15042 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-11-21 20:31:09 +00:00
parent 8caf39c4f8
commit 973eda60fc
2 changed files with 28 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2002-11-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/gsc/GSGState.m
Implemented [GSSendBezierPath:].
* Source/gsc/GSStreamContext.m
Removed (empty) implementation of [GSSendBezierPath:].
* Source/x11/XGServer.m
Added #ifdef around include of XGOpenGL.h.
2002-11-16 Adam Fedor <fedor@gnu.org>
* Source/x11/XGGLContext.m (-initWithFormat:shareContext:): Remove

View file

@ -839,8 +839,26 @@
- (void) GSSendBezierPath: (NSBezierPath *)newpath
{
int count;
float pattern[10];
float phase;
// Appending to the current path is a lot faster than copying!
//ASSIGNCOPY(path, newpath);
CHECK_PATH;
[path appendBezierPath: path];
[path removeAllPoints];
[path appendBezierPath: newpath];
[path transformUsingAffineTransform: ctm];
// The following should be moved down into the specific subclasses
[self DPSsetlinewidth: [newpath lineWidth]];
[self DPSsetlinejoin: [newpath lineJoinStyle]];
[self DPSsetlinecap: [newpath lineCapStyle]];
[self DPSsetmiterlimit: [newpath miterLimit]];
[self DPSsetflat: [newpath flatness]];
[newpath getLineDash: pattern count: &count phase: &phase];
[self DPSsetdash: pattern : count : phase];
}
- (void) GSRectClipList: (const NSRect *)rects : (int) count