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:
Fred Kiefer 2008-02-08 22:43:13 +00:00
parent 9bf26442df
commit 445e2ea5ba
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-02-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/art/ARTContext.m (-GSDrawImage:): Hack to allow the
handling of pre-multiplied bitmaps.
2008-01-31 Fred Kiefer <FredKiefer@gmx.de>
* Tools/win32pbs.m: Use event polling code from WIN32Server.m.

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