From 8ff7c9a7dedf1bf6d428c19c917dd4e943d66d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trond=20Kjern=C3=A5sen?= Date: Thu, 24 Sep 2009 13:07:38 +0200 Subject: Fixed a text drawing problem in the GL2 engine under X11. In certain situations text would toggle between sub-pixel hinted and normal antialiased, when e.g. drawing menus with -graphicssystem opengl. Reviewed-by: Samuel --- src/gui/text/qfontengine_ft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qfontengine_ft.cpp b/src/gui/text/qfontengine_ft.cpp index 788417a..3da1593 100644 --- a/src/gui/text/qfontengine_ft.cpp +++ b/src/gui/text/qfontengine_ft.cpp @@ -1856,7 +1856,7 @@ QImage QFontEngineFT::alphaMapForGlyph(glyph_t g) QImage QFontEngineFT::alphaRGBMapForGlyph(glyph_t g, int margin, const QTransform &t) { - if (t.type() != QTransform::TxTranslate) + if (t.type() > QTransform::TxTranslate) return QFontEngine::alphaRGBMapForGlyph(g, margin, t); lockFace(); -- cgit v0.12