summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2014-10-10 13:20:12 +0200
committerAndy Shaw <andy.shaw@digia.com>2014-10-23 17:23:56 +0200
commit04912b6a3bcff9087d0679b224cfccee3c05bd10 (patch)
tree60e39268c713999bdbf5251e13a89cd63f7d1cfa /src
parent15377a6927a2df1dcf5592eea411ac1f0dd24840 (diff)
Don't use cosmetic GDI pens as this is already accounted for
Since Qt will already handle the cosmetic case when rendering then it should be respected instead of overriding it by using the cosmetic GDI pen. This ensures that the pen's width is used and also the color of the pen. Task-number: QTBUG-33611 Change-Id: I2719311b3fb5480a5b228c0d415aa545967321cf Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/printsupport/kernel/qprintengine_win.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/printsupport/kernel/qprintengine_win.cpp b/src/printsupport/kernel/qprintengine_win.cpp
index 14ffcaca96..a1a2f97abe 100644
--- a/src/printsupport/kernel/qprintengine_win.cpp
+++ b/src/printsupport/kernel/qprintengine_win.cpp
@@ -734,10 +734,7 @@ void QWin32PrintEnginePrivate::strokePath_dev(const QPainterPath &path, const QC
else if (pen.joinStyle() == Qt::RoundJoin)
joinStyle = PS_JOIN_ROUND;
- bool cosmetic = qt_pen_is_cosmetic(pen, q->state->renderHints());
-
- HPEN pen = ExtCreatePen((cosmetic ? PS_COSMETIC : PS_GEOMETRIC)
- | PS_SOLID | capStyle | joinStyle,
+ HPEN pen = ExtCreatePen(PS_GEOMETRIC | PS_SOLID | capStyle | joinStyle,
(penWidth == 0) ? 1 : penWidth, &brush, 0, 0);
HGDIOBJ old_pen = SelectObject(hdc, pen);