diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-03-14 15:07:33 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-03-14 15:13:55 (GMT) |
commit | 25a30c8e258df642a1aa2ffcfb162633611e7259 (patch) | |
tree | 6ff6a35ccba9a4187f80e5e0ba96015d8d1b2427 /src/gui/text | |
parent | 4d104eb33542b78e233abb9a0d6d4a0ee1495868 (diff) | |
download | Qt-25a30c8e258df642a1aa2ffcfb162633611e7259.zip Qt-25a30c8e258df642a1aa2ffcfb162633611e7259.tar.gz Qt-25a30c8e258df642a1aa2ffcfb162633611e7259.tar.bz2 |
Fix checking hintingPreference in Windows font database
This was a left-over of when the API was flags-based.
Reviewed-by: Jiang Jiang
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qfontdatabase_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qfontdatabase_win.cpp b/src/gui/text/qfontdatabase_win.cpp index 0bb1d8d..8279195 100644 --- a/src/gui/text/qfontdatabase_win.cpp +++ b/src/gui/text/qfontdatabase_win.cpp @@ -703,8 +703,8 @@ QFontEngine *loadEngine(int script, const QFontPrivate *fp, const QFontDef &requ #if !defined(QT_NO_DIRECTWRITE) - bool useDirectWrite = (request.hintingPreference & QFont::PreferNoHinting) - || (request.hintingPreference & QFont::PreferVerticalHinting); + bool useDirectWrite = (request.hintingPreference == QFont::PreferNoHinting) + || (request.hintingPreference == QFont::PreferVerticalHinting); IDWriteFont *directWriteFont = 0; #else bool useDirectWrite = false; |