summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-06-20 09:35:22 +0000
committerpeter1138 <peter1138@openttd.org>2009-06-20 09:35:22 +0000
commit88ec646c1f843b95635510988c793e4e83cbc8cc (patch)
tree3f6025e6d1bea72a618db4abc35a74c632fa26a9
parent9b156c1bd433fd231868a70dad719c6972858072 (diff)
downloadopenttd-88ec646c1f843b95635510988c793e4e83cbc8cc.tar.xz
(svn r16602) -Fix (r13831): Antialiased fonts broken; check pixel_mode instead of palette_mode. (Why did it work at some point?)
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 3e1f0f879..2b9854b9d 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -730,7 +730,7 @@ const Sprite *GetGlyph(FontSize size, WChar key)
FT_Render_Glyph(face->glyph, aa ? FT_RENDER_MODE_NORMAL : FT_RENDER_MODE_MONO);
/* Despite requesting a normal glyph, FreeType may have returned a bitmap */
- aa = (slot->bitmap.palette_mode == FT_PIXEL_MODE_GRAY);
+ aa = (slot->bitmap.pixel_mode == FT_PIXEL_MODE_GRAY);
/* Add 1 pixel for the shadow on the medium font. Our sprite must be at least 1x1 pixel */
width = max(1, slot->bitmap.width + (size == FS_NORMAL));