diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2010-03-03 16:37:09 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2010-03-03 16:41:05 (GMT) |
commit | e98d4aece51fa8691cf33325ab96634fcf9baa81 (patch) | |
tree | 8acdba5ca4696eb6c84916878fe7293eaae6fc96 | |
parent | 13e08bb43bc7c972e77fc7b77ae5de14235cb897 (diff) | |
download | Qt-e98d4aece51fa8691cf33325ab96634fcf9baa81.zip Qt-e98d4aece51fa8691cf33325ab96634fcf9baa81.tar.gz Qt-e98d4aece51fa8691cf33325ab96634fcf9baa81.tar.bz2 |
Fix compositing when QWS background is completely transparent.
Specifying the wrong composition mode triggered an optimization which
caused uninitialized values to be blended in.
Task-number: QTBUG-6625, QTBUG-6906
Reviewed-by: Samuel
-rw-r--r-- | src/gui/embedded/qscreen_qws.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/embedded/qscreen_qws.cpp b/src/gui/embedded/qscreen_qws.cpp index 8eb8123..9bd73a4 100644 --- a/src/gui/embedded/qscreen_qws.cpp +++ b/src/gui/embedded/qscreen_qws.cpp @@ -2739,7 +2739,7 @@ void QScreen::compose(int level, const QRegion &exposed, QRegion &blend, default: break; } - spanData.setup(qwsServer->backgroundBrush(), 256, QPainter::CompositionMode_SourceOver); + spanData.setup(qwsServer->backgroundBrush(), 256, QPainter::CompositionMode_Source); spanData.dx = off.x(); spanData.dy = off.y(); } else if (!surface->isBuffered()) { |