Add a generic basic implementation for the DPSshfill: operator. This

needs to be optimized for each individual backend and the original art
implemenation should be moved to this.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25519 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-10-05 20:57:59 +00:00
parent 69745597e4
commit f2ac847ff4
8 changed files with 580 additions and 16 deletions

View file

@ -215,11 +215,6 @@ static BOOL _rect_advance(rect_trace_t * t, int *x0, int *x1)
}
@interface ARTGState (shfill)
- (void) DPSshfill: (NSDictionary *)shader;
@end
@implementation ARTGState (shfill)
@ -738,7 +733,7 @@ static void function_free(function_t * f)
if (state)
{
p = [inverse transformPoint:
NSMakePoint(clip_x0 + x0 - offset.y, offset.y - y)];
NSMakePoint(clip_x0 + x0 - offset.x, offset.y - y)];
in[0] = p.x;
in[1] = p.y;
@ -782,12 +777,3 @@ done:
@end
@implementation ARTContext (shfill)
/* TODO: move to gsc? */
- (void) DPSshfill: (NSDictionary *)shader
{
[(ARTGState *)gstate DPSshfill: shader];
}
@end