diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-03-15 08:39:13 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-03-15 09:21:11 (GMT) |
commit | 6d4ef0ff8fd30e5f50f6f770d651a51584e5cfdc (patch) | |
tree | 8613625828bb40cc178b0101f915304bea818d93 /tests/auto/qimagereader/qimagereader.qrc | |
parent | 3c20b3ed8e89e351f1fb459e6ff5439f30958141 (diff) | |
download | Qt-6d4ef0ff8fd30e5f50f6f770d651a51584e5cfdc.zip Qt-6d4ef0ff8fd30e5f50f6f770d651a51584e5cfdc.tar.gz Qt-6d4ef0ff8fd30e5f50f6f770d651a51584e5cfdc.tar.bz2 |
Fix grayscale antialiasing with DirectWrite engine
The code that converted DirectWrite's output to grayscale in
alphaMapForGlyph() had a bunch of copy-paste errors and had obviously
not been tested properly. We invert the input to the gamma function to
get the right curve and then invert the output back. See windows
font engine for comparison.
Reviewed-by: Jiang Jiang
Diffstat (limited to 'tests/auto/qimagereader/qimagereader.qrc')
0 files changed, 0 insertions, 0 deletions