mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 00:40:55 +00:00
Finish rework of composite operators started four years ago.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28313 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
38a23e2da3
commit
77aaf931f4
7 changed files with 61 additions and 117 deletions
|
@ -1200,6 +1200,27 @@ static BOOL _rect_advance(rect_trace_t *t, int *x0, int *x1)
|
|||
UPDATE_UNBUFFERED
|
||||
}
|
||||
|
||||
- (void) compositeGState: (GSGState *)source
|
||||
fromRect: (NSRect)aRect
|
||||
toPoint: (NSPoint)aPoint
|
||||
op: (NSCompositingOperation)op
|
||||
fraction: (float)delta
|
||||
{
|
||||
if (op == NSCompositeSourceOver)
|
||||
{
|
||||
[self dissolveGState: source
|
||||
fromRect: aRect
|
||||
toPoint: aPoint
|
||||
delta: delta];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self compositeGState: source
|
||||
fromRect: aRect
|
||||
toPoint: aPoint
|
||||
op: op];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) compositerect: (NSRect)aRect
|
||||
op: (NSCompositingOperation)op
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue