From 447884fddbfbec520a927cfdaa1aaad5127cca9d Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 19 Nov 2011 18:43:00 +0000 Subject: (svn r23265) -Codechange: replace the setfallbackfont callback function with a class to call back --- src/fontcache.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fontcache.h') 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 -- cgit v1.2.3-54-g00ecf