diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-04-14 11:13:29 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-04-14 11:43:55 (GMT) |
commit | c28cb85841fb5be154c2460efdc82dde012407b9 (patch) | |
tree | 38657deca543bdf7057195b22c6d8a53101ecf58 /src | |
parent | 67344b0e7617fde78722440346a779aee0bf1286 (diff) | |
download | Qt-c28cb85841fb5be154c2460efdc82dde012407b9.zip Qt-c28cb85841fb5be154c2460efdc82dde012407b9.tar.gz Qt-c28cb85841fb5be154c2460efdc82dde012407b9.tar.bz2 |
Remove scale applied to cosmetic pens when antialiasing is enabled (X11).
The pen width should not be scaled for cosmetic pens.
Task-number: 247083
Reviewed-by: Trond
BT: yes
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qpaintengine_x11.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp index d931f55..39ce59f 100644 --- a/src/gui/painting/qpaintengine_x11.cpp +++ b/src/gui/painting/qpaintengine_x11.cpp @@ -1760,7 +1760,10 @@ void QX11PaintEngine::drawPath(const QPainterPath &path) QRectF deviceRect(0, 0, d->pdev->width(), d->pdev->height()); // necessary to get aliased alphablended primitives to be drawn correctly if (d->cpen.isCosmetic() || d->has_scaling_xform) { - stroker.setWidth(width == 0 ? 1 : width * d->xform_scale); + if (d->cpen.isCosmetic()) + stroker.setWidth(width == 0 ? 1 : width); + else + stroker.setWidth(width * d->xform_scale); stroker.d_ptr->stroker.setClipRect(deviceRect); stroke = stroker.createStroke(path * d->matrix); if (stroke.isEmpty()) |