Update of /cvsroot/xine/xine-lib/src/video_out
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25926
Modified Files:
video_out_directfb.c
Log Message:
Added support for OSD layers with inverted alpha (e.g. Unichrome).
Index: video_out_directfb.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_directfb.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- video_out_directfb.c 23 Nov 2006 18:45:58 -0000 1.45
+++ video_out_directfb.c 13 Dec 2006 10:36:58 -0000 1.46
@@ -1444,7 +1444,14 @@
config.flags = DLCONF_PIXELFORMAT | DLCONF_OPTIONS;
config.pixelformat = DSPF_ARGB;
config.options = DLOP_ALPHACHANNEL;
+
ret = this->underlay->SetConfiguration (this->underlay, &config);
+ if (ret) {
+ /* try AiRGB if the previous failed */
+ config.pixelformat = DSPF_AiRGB;
+ ret = this->underlay->SetConfiguration (this->underlay, &config);
+ }
+
if (ret == DFB_OK) {
this->underlay->AddRef (this->underlay);
this->spic_layer = this->underlay;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog