aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-02 02:09:55 +0100
committerJohannes Schickel2012-02-02 02:39:40 +0100
commit6402d308747cc3d5969ca760101ebf6f34546bd2 (patch)
tree17ae2f8fd8561a40965253bf9fe52cda6cc247f2 /graphics
parentc222afc933aaf9f04d15c4bcc4dd4f6c38bae17a (diff)
downloadscummvm-rg350-6402d308747cc3d5969ca760101ebf6f34546bd2.tar.gz
scummvm-rg350-6402d308747cc3d5969ca760101ebf6f34546bd2.tar.bz2
scummvm-rg350-6402d308747cc3d5969ca760101ebf6f34546bd2.zip
GRAPHICS: Use monochrome font hinter for TTF's monochrome loading.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fonts/ttf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index 2ba6205a11..faf59a9ec5 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -383,7 +383,7 @@ bool TTFFont::cacheGlyph(Glyph &glyph, FT_UInt &slot, uint chr) {
// We use the light target and render mode to improve the looks of the
// glyphs. It is most noticable in FreeSansBold.ttf, where otherwise the
// 't' glyph looks like it is cut off on the right side.
- if (FT_Load_Glyph(_face, slot, (_monochrome ? FT_LOAD_MONOCHROME : FT_LOAD_TARGET_LIGHT)))
+ if (FT_Load_Glyph(_face, slot, (_monochrome ? FT_LOAD_TARGET_MONO : FT_LOAD_TARGET_LIGHT)))
return false;
if (FT_Render_Glyph(_face->glyph, (_monochrome ? FT_RENDER_MODE_MONO : FT_RENDER_MODE_LIGHT)))