diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-09-29 09:11:53 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-09-29 09:11:53 (GMT) |
commit | 59e26112158559e34859fb731599576d194245b0 (patch) | |
tree | 3b89d95b983bc967f4b89b5cf44c163957aaded7 /src/opengl/gl2paintengineex | |
parent | f7a439a0a00b0bdd6ebeff8bfd5ee2285eab1398 (diff) | |
download | Qt-59e26112158559e34859fb731599576d194245b0.zip Qt-59e26112158559e34859fb731599576d194245b0.tar.gz Qt-59e26112158559e34859fb731599576d194245b0.tar.bz2 |
Fallback to A8 text rendering on Mac when LCD smoothing is disabled
Task-number: QTBUG-14050
Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index acc68d3..a81ed8e 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -98,6 +98,10 @@ QT_BEGIN_NAMESPACE extern Q_GUI_EXPORT bool qt_cleartype_enabled; #endif +#ifdef Q_WS_MAC +extern bool qt_applefontsmoothing_enabled; +#endif + extern QImage qt_imageForBrush(int brushStyle, bool invert); ////////////////////////////////// Private Methods ////////////////////////////////////////// @@ -1868,6 +1872,9 @@ bool QGL2PaintEngineEx::begin(QPaintDevice *pdev) #if defined(Q_WS_WIN) if (qt_cleartype_enabled) #endif +#if defined(Q_WS_MAC) + if (qt_applefontsmoothing_enabled) +#endif d->glyphCacheType = QFontEngineGlyphCache::Raster_RGBMask; #endif |