diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-04-07 01:41:58 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-04-07 01:41:58 (GMT) |
commit | fb7275161fa646c76cf47dfc8eb41e9356639e70 (patch) | |
tree | 691ef31d2b1a50957ecdf299b1e21eca2d15f4ea | |
parent | 0002b0285269f69648a7eede33a1d9df5fab8c53 (diff) | |
download | Qt-fb7275161fa646c76cf47dfc8eb41e9356639e70.zip Qt-fb7275161fa646c76cf47dfc8eb41e9356639e70.tar.gz Qt-fb7275161fa646c76cf47dfc8eb41e9356639e70.tar.bz2 |
Pens can have brushes
DirectFB can only handle cases where the pen's brush is Qt::SolidPattern
Reviewed-by: TrustMe
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp index 3b6ea80..d0a9dc6 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp @@ -367,7 +367,9 @@ void QDirectFBPaintEnginePrivate::setPen(const QPen &p) { pen = p; simplePen = (pen.style() == Qt::NoPen) || - (pen.style() == Qt::SolidLine && !antialiased + (pen.style() == Qt::SolidLine + && !antialiased + && (pen.brush().style() == Qt::SolidPattern) && (pen.widthF() <= 1 && !matrixScale)); } |