mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
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:
parent
4e22694c3a
commit
e3eb6597e1
4 changed files with 10 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -35,6 +35,9 @@
|
|||
#include "ftfont.h"
|
||||
|
||||
|
||||
#include <libart_lgpl/libart.h>
|
||||
|
||||
|
||||
#ifndef PI
|
||||
#define PI 3.14159265358979323846264338327950288
|
||||
#endif
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#define blit_h
|
||||
|
||||
|
||||
#include <libart_lgpl/libart.h>
|
||||
|
||||
|
||||
/** Information about how we draw stuff **/
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue