summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2010-03-01 21:10:37 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2010-03-01 23:23:00 (GMT)
commit8b90fe35a737a71dbc15de48088fc100241f701c (patch)
treed7d29cd8dbdeba4ec7b6c8922bcad45415f3792c /src
parent9842e823a5a3df8d786ddc1c6fe355db8f511354 (diff)
downloadQt-8b90fe35a737a71dbc15de48088fc100241f701c.zip
Qt-8b90fe35a737a71dbc15de48088fc100241f701c.tar.gz
Qt-8b90fe35a737a71dbc15de48088fc100241f701c.tar.bz2
Add support for composition mode DSPD_DST in DFB
This porter duff rule was added in DirectFB 1.2 Reviewed-by: Noam Rosenthal <noam.rosenthal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 2b11058..d6e1a03 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -944,6 +944,11 @@ void QDirectFBPaintEnginePrivate::setCompositionMode(QPainter::CompositionMode m
case QPainter::CompositionMode_DestinationOut:
surface->SetPorterDuff(surface, DSPD_DST_OUT);
break;
+#if (Q_DIRECTFB_VERSION >= 0x010200)
+ case QPainter::CompositionMode_Destination:
+ surface->SetPorterDuff(surface, DSPD_DST);
+ break;
+#endif
#if (Q_DIRECTFB_VERSION >= 0x010000)
case QPainter::CompositionMode_SourceAtop:
surface->SetPorterDuff(surface, DSPD_SRC_ATOP);