From b3dfbb54c0dd53f0da0c6c2672562c646e6cdda6 Mon Sep 17 00:00:00 2001 From: Claudio Ciccani Date: Wed, 13 Dec 2006 10:36:58 +0000 Subject: Added support for OSD layers with inverted alpha (e.g. Unichrome). CVS patchset: 8410 CVS date: 2006/12/13 10:36:58 --- src/video_out/video_out_directfb.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; -- cgit v1.2.3