diff options
author | aavit <qt-info@nokia.com> | 2010-09-27 10:16:36 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-09-27 10:16:36 (GMT) |
commit | 52e36c493d579323a09957028b0fd5ebc4d43021 (patch) | |
tree | 20e2be544f034222250fa19a4e27e2ee37b958aa /src/openvg | |
parent | c9a5ab5fd506663c5a7cd587d1b963c067d334bf (diff) | |
parent | ce2a273bab9b9094a1f0f3f60309797e11e59404 (diff) | |
download | Qt-52e36c493d579323a09957028b0fd5ebc4d43021.zip Qt-52e36c493d579323a09957028b0fd5ebc4d43021.tar.gz Qt-52e36c493d579323a09957028b0fd5ebc4d43021.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'src/openvg')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index 3c2fd3d..74395a2 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -248,7 +248,11 @@ public: inline void ensurePathTransform() { if (!pathTransformSet) { - setTransform(VG_MATRIX_PATH_USER_TO_SURFACE, pathTransform); + QTransform aliasedTransform = pathTransform; + if (renderingQuality == VG_RENDERING_QUALITY_NONANTIALIASED && currentPen != Qt::NoPen) + aliasedTransform = aliasedTransform + * QTransform::fromTranslate(aliasedCoordinateDelta, -aliasedCoordinateDelta); + setTransform(VG_MATRIX_PATH_USER_TO_SURFACE, aliasedTransform); pathTransformSet = true; } } @@ -306,6 +310,7 @@ inline void QVGPaintEnginePrivate::setRenderingQuality(VGRenderingQuality mode) if (renderingQuality != mode) { vgSeti(VG_RENDERING_QUALITY, mode); renderingQuality = mode; + pathTransformSet = false; // need to tweak transform for aliased stroking } } |