diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-22 17:49:39 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-22 17:52:39 (GMT) |
commit | 1f67584c5260b0d9f275ed5f3a24e444168ec3eb (patch) | |
tree | 4bbbf081eb591e0a3532fa75950038db63dece9e | |
parent | adea8ea0dd70a0a33d07e9ada1d0823b5fc637ac (diff) | |
download | Qt-1f67584c5260b0d9f275ed5f3a24e444168ec3eb.zip Qt-1f67584c5260b0d9f275ed5f3a24e444168ec3eb.tar.gz Qt-1f67584c5260b0d9f275ed5f3a24e444168ec3eb.tar.bz2 |
Ray casting example: bypass alpha-blending for an easy speed-up.
Reviewed-by: TrustMe
-rw-r--r-- | demos/embedded/raycasting/raycasting.cpp | 1 |
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()); } |