summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-05-01 16:42:53 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-05-01 16:43:38 (GMT)
commitab03f0095a09fa961e53f741294ca8a890e1827f (patch)
treeb20a15b09167661e452d502e3f37b1b9ed418243 /src/plugins
parent1569eaba5eaf99c810d4f205e890b68d069f189b (diff)
downloadQt-ab03f0095a09fa961e53f741294ca8a890e1827f.zip
Qt-ab03f0095a09fa961e53f741294ca8a890e1827f.tar.gz
Qt-ab03f0095a09fa961e53f741294ca8a890e1827f.tar.bz2
Improved readability of the flip code
Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
index 257efeb..09b7a30 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
@@ -371,18 +371,13 @@ void QDirectFBSurface::flush(QWidget *widget, const QRegion &region,
} else {
if (region.numRects() > 1) {
const QVector<QRect> rects = region.rects();
- DFBSurfaceFlipFlags tmpFlags = flipFlags;
- if (flipFlags & DSFLIP_WAIT)
- tmpFlags = DFBSurfaceFlipFlags(flipFlags & ~DSFLIP_WAIT);
+ const DFBSurfaceFlipFlags nonWaitFlags = DFBSurfaceFlipFlags(flipFlags & ~DSFLIP_WAIT);
for (int i=0; i<rects.size(); ++i) {
const QRect &r = rects.at(i);
const DFBRegion dfbReg = { r.x() + offset.x(), r.y() + offset.y(),
r.x() + r.width() + offset.x(),
r.y() + r.height() + offset.y() };
- dfbSurface->Flip(dfbSurface, &dfbReg,
- i + 1 < rects.size()
- ? tmpFlags
- : flipFlags);
+ dfbSurface->Flip(dfbSurface, &dfbReg, i + 1 < rects.size() ? nonWaitFlags : flipFlags);
}
} else {
const QRect r = region.boundingRect();