diff options
author | rubidium <rubidium@openttd.org> | 2011-11-19 18:43:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-19 18:43:00 +0000 |
commit | 447884fddbfbec520a927cfdaa1aaad5127cca9d (patch) | |
tree | 51727955c2bad4111b0ed6555c43e73a7b528e35 /src/fontcache.h | |
parent | 32b28bb86819411c427c694ec26616d0bc45fdb3 (diff) | |
download | openttd-447884fddbfbec520a927cfdaa1aaad5127cca9d.tar.xz |
(svn r23265) -Codechange: replace the setfallbackfont callback function with a class to call back
Diffstat (limited to 'src/fontcache.h')
-rw-r--r-- | src/fontcache.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fontcache.h b/src/fontcache.h index 726ba4d9f..3445a09ce 100644 --- a/src/fontcache.h +++ b/src/fontcache.h @@ -47,7 +47,6 @@ const Sprite *GetGlyph(FontSize size, uint32 key); uint GetGlyphWidth(FontSize size, uint32 key); bool GetDrawGlyphShadow(); -typedef bool (SetFallbackFontCallback)(const char **); /** * We would like to have a fallback font as the current one * doesn't contain all characters we need. @@ -58,7 +57,7 @@ typedef bool (SetFallbackFontCallback)(const char **); * @param callback The function to call to check for missing glyphs. * @return true if a font has been set, false otherwise. */ -bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, SetFallbackFontCallback *callback); +bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, class MissingGlyphSearcher *callback); #else |