diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2010-02-18 08:07:55 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2010-02-24 22:16:57 (GMT) |
commit | 5a5adb93c557168a98130cf94e7385778b9b0e59 (patch) | |
tree | 9129783a84fab09e652829d229f9b53ab23bfba5 /src | |
parent | 4ef9e81c777affd140dbda97645b31b7658c7280 (diff) | |
download | Qt-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')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp | 4 |
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 ®ion, 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 ®ion, } 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 { |