diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2013-03-05 15:43:50 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-14 07:33:33 +0100 |
commit | 82b2df405962aae03f8a4ea1cf3028fbac0eff57 (patch) | |
tree | f8d4c0ef1daf757a3481d4eea05da7b0620bf8fd /src/gui/painting/qcosmeticstroker_p.h | |
parent | 74cdd38caeb6b8df7375d507ef4364e937d1edf7 (diff) |
Fixed dashes being rendered differently depending on system clip.
We need to clip lines to the unclipped device rect in the case of
dashing, since otherwise the dashes will be shifted and rendered
differently when partial repaints are done.
Task-number: QTBUG-24762
Change-Id: I3599b54baa552acc20bf8cc2e12f846b45f6019e
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
(cherry picked from commit a12f6ba302e54c1570c54aa4c722f2dafbf794af)
Diffstat (limited to 'src/gui/painting/qcosmeticstroker_p.h')
-rw-r--r-- | src/gui/painting/qcosmeticstroker_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qcosmeticstroker_p.h b/src/gui/painting/qcosmeticstroker_p.h index 77c00390b9..870738be01 100644 --- a/src/gui/painting/qcosmeticstroker_p.h +++ b/src/gui/painting/qcosmeticstroker_p.h @@ -86,8 +86,9 @@ public: HorizontalMask = 0xc }; - QCosmeticStroker(QRasterPaintEngineState *s, const QRect &dr) + QCosmeticStroker(QRasterPaintEngineState *s, const QRect &dr, const QRect &dr_unclipped) : state(s), + deviceRect(dr_unclipped), clip(dr), pattern(0), reversePattern(0), @@ -106,6 +107,7 @@ public: QRasterPaintEngineState *state; + QRect deviceRect; QRect clip; // clip bounds in real qreal xmin, xmax; |