diff options
author | peter1138 <peter1138@openttd.org> | 2011-10-07 07:48:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2011-10-07 07:48:59 +0000 |
commit | 8a41530585402c7850ce68542ec1ea551d2cb277 (patch) | |
tree | ec6ff06bcbc14d8ca3553e8dab0340b2c2ce4866 /src/fontcache.h | |
parent | ca1df3ddab2c70cef9edcdc462e07fdad17f4ab9 (diff) | |
download | openttd-8a41530585402c7850ce68542ec1ea551d2cb277.tar.xz |
(svn r23009) -Change: Improve appearance of antialiased text with shadow.
Diffstat (limited to 'src/fontcache.h')
-rw-r--r-- | src/fontcache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fontcache.h b/src/fontcache.h index 8148cba3c..726ba4d9f 100644 --- a/src/fontcache.h +++ b/src/fontcache.h @@ -45,6 +45,7 @@ void InitFreeType(); void UninitFreeType(); const Sprite *GetGlyph(FontSize size, uint32 key); uint GetGlyphWidth(FontSize size, uint32 key); +bool GetDrawGlyphShadow(); typedef bool (SetFallbackFontCallback)(const char **); /** @@ -82,6 +83,11 @@ static inline uint GetGlyphWidth(FontSize size, uint32 key) return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + (size != FS_NORMAL) : 0; } +static inline bool GetDrawGlyphShadow() +{ + return false; +} + #endif /* WITH_FREETYPE */ #endif /* FONTCACHE_H */ |