summaryrefslogtreecommitdiffstats
path: root/demos/embedded
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-09-22 17:49:39 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-09-22 17:52:39 (GMT)
commit1f67584c5260b0d9f275ed5f3a24e444168ec3eb (patch)
tree4bbbf081eb591e0a3532fa75950038db63dece9e /demos/embedded
parentadea8ea0dd70a0a33d07e9ada1d0823b5fc637ac (diff)
downloadQt-1f67584c5260b0d9f275ed5f3a24e444168ec3eb.zip
Qt-1f67584c5260b0d9f275ed5f3a24e444168ec3eb.tar.gz
Qt-1f67584c5260b0d9f275ed5f3a24e444168ec3eb.tar.bz2
Ray casting example: bypass alpha-blending for an easy speed-up.
Reviewed-by: TrustMe
Diffstat (limited to 'demos/embedded')
-rw-r--r--demos/embedded/raycasting/raycasting.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/embedded/raycasting/raycasting.cpp b/demos/embedded/raycasting/raycasting.cpp
index e98dc35..3836dc1 100644
--- a/demos/embedded/raycasting/raycasting.cpp
+++ b/demos/embedded/raycasting/raycasting.cpp
@@ -254,6 +254,7 @@ protected:
void paintEvent(QPaintEvent *event) {
QPainter p(this);
+ p.setCompositionMode(QPainter::CompositionMode_Source);
p.drawImage(event->rect(), buffer, event->rect());
}