summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-06-24 21:40:39 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-06-24 21:51:18 (GMT)
commit74e782be57f22e41aeb6aa4bbec4e2921243097c (patch)
treedbfb6dbec1c6f8570014f882df468a17478920c0 /src
parent9d66697a72dd3c26ed744ffecab50722eb9adaee (diff)
downloadQt-74e782be57f22e41aeb6aa4bbec4e2921243097c.zip
Qt-74e782be57f22e41aeb6aa4bbec4e2921243097c.tar.gz
Qt-74e782be57f22e41aeb6aa4bbec4e2921243097c.tar.bz2
Fix off by one bug in DirectFBPaintEngine
This bug made us call lock more than we needed to. Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 3edef8f..40bec0e 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -378,7 +378,7 @@ void QDirectFBPaintEngine::clip(const QVectorPath &path, Qt::ClipOperation op)
Q_D(QDirectFBPaintEngine);
d->dirtyClip = true;
const QPoint bottom = d->transform.map(QPoint(0, int(path.controlPointRect().y2)));
- if (bottom.y() >= d->lastLockedHeight)
+ if (bottom.y() > d->lastLockedHeight)
d->lock();
QRasterPaintEngine::clip(path, op);
}
@@ -389,7 +389,7 @@ void QDirectFBPaintEngine::clip(const QRect &rect, Qt::ClipOperation op)
d->dirtyClip = true;
if (d->clip() && !d->clip()->hasRectClip && d->clip()->enabled) {
const QPoint bottom = d->transform.map(QPoint(0, rect.bottom()));
- if (bottom.y() >= d->lastLockedHeight)
+ if (bottom.y() > d->lastLockedHeight)
d->lock();
}