summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2010-02-18 08:07:55 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2010-02-24 22:16:57 (GMT)
commit5a5adb93c557168a98130cf94e7385778b9b0e59 (patch)
tree9129783a84fab09e652829d229f9b53ab23bfba5 /src/plugins/gfxdrivers
parent4ef9e81c777affd140dbda97645b31b7658c7280 (diff)
downloadQt-5a5adb93c557168a98130cf94e7385778b9b0e59.zip
Qt-5a5adb93c557168a98130cf94e7385778b9b0e59.tar.gz
Qt-5a5adb93c557168a98130cf94e7385778b9b0e59.tar.bz2
Fix an isOpaque bug in QDirectFBWindowSurface
The logic was reversed. Reviewed-by: Jervey Kong <jervey.kong@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
index 6764e75..3f59dc4 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
@@ -368,7 +368,7 @@ void QDirectFBWindowSurface::flush(QWidget *widget, const QRegion &region,
dfbWindow->SetOpacity(dfbWindow, windowOpacity);
}
- setOpaque(noSystemBackground || windowOpacity != 0xff);
+ setOpaque(!noSystemBackground && windowOpacity == 0xff);
if (wasNoSystemBackground != noSystemBackground) {
releaseSurface();
dfbWindow->Release(dfbWindow);
@@ -379,7 +379,7 @@ void QDirectFBWindowSurface::flush(QWidget *widget, const QRegion &region,
}
screen->flipSurface(dfbSurface, flipFlags, region, offset);
#else
- setOpaque(windowOpacity != 0xff);
+ setOpaque(windowOpacity == 0xff);
if (mode == Offscreen) {
screen->exposeRegion(region.translated(offset + geometry().topLeft()), 0);
} else {