Allow the handling of pre-multiplied bitmaps.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-02-08 22:43:13 +00:00
parent 0087a1679b
commit f9442133c5
2 changed files with 16 additions and 0 deletions

View file

@ -179,3 +179,14 @@ static int byte_order(void)
[(ARTGState *)gstate GSCurrentDevice: device : x : y];
}
@end
@implementation ARTContext (Ops)
- (void) GSDrawImage: (NSRect) rect: (void *) imageref
{
// Hack until Art is able to handle premultiplied images
[imageref _unpremultiply];
[super GSDrawImage: rect : imageref];
}
@end