diff options
author | Trond Kjernaasen <trond@trolltech.com> | 2009-06-05 10:32:51 (GMT) |
---|---|---|
committer | Trond Kjernaasen <trond@trolltech.com> | 2009-06-05 10:36:29 (GMT) |
commit | 35bdd8942716c716113e5b795186ca76199e8d96 (patch) | |
tree | d3792228bcd9c6c750d47a9d349e357dd5ab5339 /src/gui/text/qfontengine_win_p.h | |
parent | 799a9ddf0a53ecdd6e097b2efd7418fd6ab9b655 (diff) | |
download | Qt-35bdd8942716c716113e5b795186ca76199e8d96.zip Qt-35bdd8942716c716113e5b795186ca76199e8d96.tar.gz Qt-35bdd8942716c716113e5b795186ca76199e8d96.tar.bz2 |
Fixed text drawing on Windows in 16 bit mode.
There were several problems with antialiased text in 16 bit mode
under Windows. No gamma correction was done, yet we prepared the
cached glyphs for gamma correction. The mask format we rendered
the glyphs into was also set to the desktop depth, which implied
that information was lost and the text looked rather odd.
Reviewed-by: Samuel
BT: yes
Diffstat (limited to 'src/gui/text/qfontengine_win_p.h')
-rw-r--r-- | src/gui/text/qfontengine_win_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_win_p.h b/src/gui/text/qfontengine_win_p.h index 6f37e91..f78bc6a 100644 --- a/src/gui/text/qfontengine_win_p.h +++ b/src/gui/text/qfontengine_win_p.h @@ -138,7 +138,8 @@ public: mutable int designAdvancesSize; private: - QNativeImage *drawGDIGlyph(HFONT font, glyph_t, int margin, const QTransform &xform); + QNativeImage *drawGDIGlyph(HFONT font, glyph_t, int margin, const QTransform &xform, + QImage::Format mask_format); }; |