Fix calculation up alpha in plusd_aa. Clean up some includes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16329 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-04-02 12:07:34 +00:00
parent 4e22694c3a
commit e3eb6597e1
4 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2003-04-02 14:04 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ARTContext.m, Source/art/blit.h: Clean up includes.
* Source/art/blit.m (plusd_aa): Fix calculation of alpha.
2003-03-29 19:13 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ARTContext.m, Source/art/blit.h, Source/art/blit.m,

View file

@ -35,6 +35,9 @@
#include "ftfont.h"
#include <libart_lgpl/libart.h>
#ifndef PI
#define PI 3.14159265358979323846264338327950288
#endif

View file

@ -24,9 +24,6 @@
#define blit_h
#include <libart_lgpl/libart.h>
/** Information about how we draw stuff **/

View file

@ -31,8 +31,6 @@ This file includes itself. Many times. You have been warned.
#include <Foundation/NSDebug.h>
#include "x11/XGServer.h"
#include "blit.h"
#endif
@ -1142,7 +1140,7 @@ static void MPRE(plusd_aa) (composite_run_t *c, int num)
dr += sr - 255; if (dr<0) dr = 0;
dg += sg - 255; if (dg<0) dg = 0;
db += sb - 255; if (db<0) db = 0;
da += sa - 255; if (da<0) da = 0;
da += sa; if (da>255) da = 255;
BLEND_WRITE_ALPHA(d, dst_alpha, dr, dg, db, da)