summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-08-18 17:07:08 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-08-18 17:47:57 (GMT)
commit4a71fa599b0dfb71cc04fd45afeb95e780a7d2fb (patch)
tree5acd458af59701fc84a07e0582ca5e11fa425aa7 /src/plugins/gfxdrivers
parent6e7675c8b7af9bd51796552fc4ce75612cbc41c5 (diff)
downloadQt-4a71fa599b0dfb71cc04fd45afeb95e780a7d2fb.zip
Qt-4a71fa599b0dfb71cc04fd45afeb95e780a7d2fb.tar.gz
Qt-4a71fa599b0dfb71cc04fd45afeb95e780a7d2fb.tar.bz2
Fix bugs in DFBPE fillRect and drawTiledPixmap
Make sure to call CLIPPED_PAINT so painting with a region clip works. Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 131ff4b..741c4e4 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -586,7 +586,7 @@ void QDirectFBPaintEngine::drawTiledPixmap(const QRectF &r,
QRasterPaintEngine::drawTiledPixmap(r, pix, offset);
} else {
d->unlock();
- d->drawTiledPixmap(r, pixmap, offset);
+ CLIPPED_PAINT(d->drawTiledPixmap(r, pixmap, offset));
}
}
@@ -729,8 +729,7 @@ void QDirectFBPaintEngine::fillRect(const QRectF &rect, const QColor &color)
d->unlock();
d->setDFBColor(color);
const QRect r = state()->matrix.mapRect(rect).toRect();
- d->surface->FillRectangle(d->surface, r.x(), r.y(),
- r.width(), r.height());
+ CLIPPED_PAINT(d->surface->FillRectangle(d->surface, r.x(), r.y(), r.width(), r.height()));
}
}