Hi, DirectFB is missing support for the destination Porter/Duff rule, the attached trivial patch implements it.
Cheers, Andre'
>From bc05f8f2cf3bc1346e79452baa5d84bffac874e7 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Andr=C3=A9=20Draszik?= <andre.dras...@st.com> Date: Wed, 29 Jul 2009 14:54:33 +0100 Subject: [PATCH] (surface) add support for the DESTINATION Porter/Duff rule MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Draszik <andre.dras...@st.com> --- include/directfb.h | 1 + src/display/idirectfbsurface.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/directfb.h b/include/directfb.h index afcf60d..73683f6 100644 --- a/include/directfb.h +++ b/include/directfb.h @@ -3192,6 +3192,7 @@ typedef enum { DSPD_DST_ATOP = 10, /* fs: 1.0-da fd: sa */ DSPD_ADD = 11, /* fs: 1.0 fd: 1.0 */ DSPD_XOR = 12, /* fs: 1.0-da fd: 1.0-sa */ + DSPD_DST = 13, /* fs: 0.0 fd: 1.0 */ } DFBSurfacePorterDuffRule; /* diff --git a/src/display/idirectfbsurface.c b/src/display/idirectfbsurface.c index 85de236..5aed897 100644 --- a/src/display/idirectfbsurface.c +++ b/src/display/idirectfbsurface.c @@ -950,6 +950,10 @@ IDirectFBSurface_SetPorterDuff( IDirectFBSurface *thiz, src = DSBF_INVDESTALPHA; dst = DSBF_INVSRCALPHA; break; + case DSPD_DST: + src = DSBF_ZERO; + dst = DSBF_ONE; + break; default: return DFB_INVARG; } -- 1.6.0.4
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev