* [PATCH] atmel_lcdfb: Use spare bits in 32bpp mode as alpha channel
[not found] <11826149894079-git-send-email-hskinnemoen@atmel.com>
@ 2007-07-18 9:18 ` Nicolas Ferre
0 siblings, 0 replies; only message in thread
From: Nicolas Ferre @ 2007-07-18 9:18 UTC (permalink / raw)
To: Antonino A. Daplas, linux-fbdev-devel; +Cc: Linux Kernel list
From: Haavard Skinnemoen <hskinnemoen@atmel.com>
Set var->transp.offset and var->transp.length in 32bpp mode to
indicate that the 8 otherwise unused bits can be used for
transparency.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
---
drivers/video/atmel_lcdfb.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index a05491f..bb361ab 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -221,8 +221,11 @@ static int atmel_lcdfb_check_var(struct
fb_var_screeninfo *var,
var->blue.offset = 10;
var->red.length = var->green.length = var->blue.length = 5;
break;
- case 24:
case 32:
+ var->transp.offset = 24;
+ var->transp.length = 8;
+ /* fall through */
+ case 24:
var->red.offset = 0;
var->green.offset = 8;
var->blue.offset = 16;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-18 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <11826149894079-git-send-email-hskinnemoen@atmel.com>
2007-07-18 9:18 ` [PATCH] atmel_lcdfb: Use spare bits in 32bpp mode as alpha channel Nicolas Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).