summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-12-13 10:36:58 +0000
committerClaudio Ciccani <klan@users.sourceforge.net>2006-12-13 10:36:58 +0000
commitb3dfbb54c0dd53f0da0c6c2672562c646e6cdda6 (patch)
tree7246f15769b4f07c952c3b78ea5e4ee38bf161ab /src
parenta796d3c8ef35fb662924997832cf880f4ec6d8f6 (diff)
downloadxine-lib-b3dfbb54c0dd53f0da0c6c2672562c646e6cdda6.tar.gz
xine-lib-b3dfbb54c0dd53f0da0c6c2672562c646e6cdda6.tar.bz2
Added support for OSD layers with inverted alpha (e.g. Unichrome).
CVS patchset: 8410 CVS date: 2006/12/13 10:36:58
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_directfb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_out/video_out_directfb.c b/src/video_out/video_out_directfb.c
index 960bcdbf4..a51940952 100644
--- a/src/video_out/video_out_directfb.c
+++ b/src/video_out/video_out_directfb.c
@@ -1444,7 +1444,14 @@ static void init_subpicture (directfb_driver_t *this) {
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;