diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-07-23 00:16:43 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-07-23 00:16:43 (GMT) |
commit | 08d549d00816c753096d9cb97a29f4d9dd7c5573 (patch) | |
tree | 3fb19d9d3e6de749fb8b7e74d8d98e66efbd901b /src/plugins/gfxdrivers | |
parent | a974ce81d6324d8d85ade0153b5ce7c757ba4fdf (diff) | |
download | Qt-08d549d00816c753096d9cb97a29f4d9dd7c5573.zip Qt-08d549d00816c753096d9cb97a29f4d9dd7c5573.tar.gz Qt-08d549d00816c753096d9cb97a29f4d9dd7c5573.tar.bz2 |
return when brush is NoBrush in DFBPaintEngine
Reviewed-by: Noam Rosenthal <noam.rosenthal@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp index 68f37ff..b264ac0 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp @@ -608,6 +608,8 @@ void QDirectFBPaintEngine::drawTextItem(const QPointF &p, void QDirectFBPaintEngine::fill(const QVectorPath &path, const QBrush &brush) { + if (brush.style() == Qt::NoBrush) + return; RASTERFALLBACK(FILL_PATH, path, brush, VOID_ARG()); Q_D(QDirectFBPaintEngine); d->lock(); @@ -618,6 +620,8 @@ void QDirectFBPaintEngine::fill(const QVectorPath &path, const QBrush &brush) void QDirectFBPaintEngine::fillRect(const QRectF &rect, const QBrush &brush) { Q_D(QDirectFBPaintEngine); + if (brush.style() == Qt::NoBrush) + return; d->updateClip(); if (!d->unsupportedCompositionMode && !(d->transformationType & (QDirectFBPaintEnginePrivate::RectsUnsupported)) |