mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
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:
parent
9bf26442df
commit
445e2ea5ba
2 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue