diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-09-03 03:38:39 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-09-03 03:38:39 (GMT) |
commit | 79949af50976373f47d9d7077870359a972c7960 (patch) | |
tree | 9eb4013330ad27abfa9b5df4bf86608562d8086a /src/plugins/gfxdrivers | |
parent | 24f326465ab6da1f33fd8e7f6d09aca1996ddd2d (diff) | |
download | Qt-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/plugins/gfxdrivers')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp | 2 |
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 ®ion) 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 { |