summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Oliver Kropp <dok@directfb.org>2011-03-28 13:28:26 (GMT)
committerMarcel Schuette <marcel.schuette@nokia.com>2011-03-28 13:28:26 (GMT)
commit760bb7ad3c955f55ab23fb16eb5a247d644b07cc (patch)
treef8449e2bf56de71850a95e3ce24a31d7b1540730
parent1dac22d30849f0dfb38f281c59afc886b1046bb3 (diff)
downloadQt-760bb7ad3c955f55ab23fb16eb5a247d644b07cc.zip
Qt-760bb7ad3c955f55ab23fb16eb5a247d644b07cc.tar.gz
Qt-760bb7ad3c955f55ab23fb16eb5a247d644b07cc.tar.bz2
directfb: avoid version dependency by setting DSPD_DST blend functions manually
Merge-request: 2558 Reviewed-by: Marcel Schuette <marcel.schuette@nokia.com>
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index dc74c4e..6d6fb02 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -1025,11 +1025,10 @@ void QDirectFBPaintEnginePrivate::setCompositionMode(QPainter::CompositionMode m
case QPainter::CompositionMode_DestinationOut:
surface->SetPorterDuff(surface, DSPD_DST_OUT);
break;
-#if (Q_DIRECTFB_VERSION >= 0x010209)
case QPainter::CompositionMode_Destination:
- surface->SetPorterDuff(surface, DSPD_DST);
+ surface->SetSrcBlendFunction(surface, DSBF_ZERO);
+ surface->SetDstBlendFunction(surface, DSBF_ONE);
break;
-#endif
#if (Q_DIRECTFB_VERSION >= 0x010000)
case QPainter::CompositionMode_SourceAtop:
surface->SetPorterDuff(surface, DSPD_SRC_ATOP);