summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_mac.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-05-19 17:35:29 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-05-19 17:35:29 (GMT)
commiteff255bd29a8cbd09494f9e9480c2e4b07869386 (patch)
tree362e37daa7fb813b4c64dfe4303c45e326837c6f /src/gui/painting/qpaintengine_mac.cpp
parent38420b1f63162802ede4861faf6d34dfa956d486 (diff)
parent83df329a42107764889f46b9019a37804c36776a (diff)
downloadQt-eff255bd29a8cbd09494f9e9480c2e4b07869386.zip
Qt-eff255bd29a8cbd09494f9e9480c2e4b07869386.tar.gz
Qt-eff255bd29a8cbd09494f9e9480c2e4b07869386.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/gui/painting/qpaintengine_mac.cpp')
-rw-r--r--src/gui/painting/qpaintengine_mac.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_mac.cpp b/src/gui/painting/qpaintengine_mac.cpp
index 14ba94e..e5323d8 100644
--- a/src/gui/painting/qpaintengine_mac.cpp
+++ b/src/gui/painting/qpaintengine_mac.cpp
@@ -1390,7 +1390,11 @@ QCoreGraphicsPaintEngine::updateRenderHints(QPainter::RenderHints hints)
CGContextSetInterpolationQuality(d->hd, (hints & QPainter::SmoothPixmapTransform) ?
kCGInterpolationHigh : kCGInterpolationNone);
}
- CGContextSetShouldSmoothFonts(d->hd, hints & QPainter::TextAntialiasing);
+ bool textAntialiasing = (hints & QPainter::TextAntialiasing) == QPainter::TextAntialiasing;
+ if (!textAntialiasing || d->disabledSmoothFonts) {
+ d->disabledSmoothFonts = !textAntialiasing;
+ CGContextSetShouldSmoothFonts(d->hd, textAntialiasing);
+ }
}
/*