mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Match -xlib's behavior wrt pre-multiplied images in DPSimage:...'s common case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8340a66c75
commit
de72985141
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-09-18 00:36 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/image.m (-DPSimage:::::::::::): Treat input as
|
||||
pre-multiplied in the common case to (really) match xlib/.
|
||||
|
||||
2002-09-16 16:43 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/ftfont.m (add_face): Change default rendering hints.
|
||||
|
|
|
@ -582,12 +582,12 @@ seem to cause edges to be off by a pixel
|
|||
{
|
||||
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 (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