summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-09-03 03:38:39 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-09-03 03:38:39 (GMT)
commit79949af50976373f47d9d7077870359a972c7960 (patch)
tree9eb4013330ad27abfa9b5df4bf86608562d8086a /src
parent24f326465ab6da1f33fd8e7f6d09aca1996ddd2d (diff)
downloadQt-79949af50976373f47d9d7077870359a972c7960.zip
Qt-79949af50976373f47d9d7077870359a972c7960.tar.gz
Qt-79949af50976373f47d9d7077870359a972c7960.tar.bz2
Fix reversed logic in QDFBScreen::exposeRegion
We should fill the bounding rect only when the region has one rectangle. Not the other way around. Reviewed-by: TrustMe
Diffstat (limited to 'src')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
index e9278ec..5651506 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
@@ -1490,7 +1490,7 @@ void QDirectFBScreen::solidFill(const QColor &color, const QRegion &region)
color.red(), color.green(), color.blue(),
color.alpha());
const int n = region.numRects();
- if (n > 1) {
+ if (n == 1) {
const QRect r = region.boundingRect();
d_ptr->primarySurface->FillRectangle(d_ptr->primarySurface, r.x(), r.y(), r.width(), r.height());
} else {