mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 16:10:52 +00:00
Assume input is pre-multiplied.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14332 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
774fa9ded4
commit
dfe92c535b
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-08-26 00:33 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/ARTContext.m (-DPSimage:::::::::::): Assume input is
|
||||
pre-multiplied.
|
||||
|
||||
2002-08-25 21:41 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/ARTContext.m (-_composite_func::::::): Implement
|
||||
|
|
|
@ -2128,6 +2128,13 @@ and that covers most (all?) actual uses of it */
|
|||
if (hasAlpha)
|
||||
{
|
||||
ri.a=src[3];
|
||||
/* TODO: find out if input is premultiplied or not */
|
||||
if (ri.a && ri.a!=255)
|
||||
{
|
||||
ri.r=(255*ri.r)/ri.a;
|
||||
ri.g=(255*ri.g)/ri.a;
|
||||
ri.b=(255*ri.b)/ri.a;
|
||||
}
|
||||
if (alpha_dest)
|
||||
{
|
||||
if (src[3]==255)
|
||||
|
|
Loading…
Reference in a new issue