Hi,

can the following patch be applied? It helps us accelerate RGB32, which
we don't support natively and shouldn't really have a detrimental effect
on speed or anybody else.


Cheers,
Andre'

>From d9e2e7443b8c4684b267711da793a6cfd7cb0db6 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A9=20Draszik?= <andre.dras...@st.com>
Date: Sat, 25 Jul 2009 13:41:50 +0100
Subject: [PATCH] (rgb32) PIXEL_RGB32() sets alpha to ff now
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Signed-off-by: André Draszik <andre.dras...@st.com>
---
 src/gfx/convert.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gfx/convert.h b/src/gfx/convert.h
index 255ce50..912bc61 100644
--- a/src/gfx/convert.h
+++ b/src/gfx/convert.h
@@ -81,8 +81,9 @@
                                  (((g)&0xFC) <<  4) | \
                                  (((b)&0xFC) >>  2) )
 
-#define PIXEL_RGB32(r,g,b)     ( ((r) << 16) | \
-                                 ((g) <<  8) | \
+#define PIXEL_RGB32(r,g,b)     ( (0xff << 24) | \
+                                 ((r)  << 16) | \
+                                 ((g)  <<  8) | \
                                   (b) )
 
 #define PIXEL_ARGB(a,r,g,b)    ( ((a) << 24) | \
-- 
1.6.0.4

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to