summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-20 11:59:36 +0000
committerrubidium <rubidium@openttd.org>2011-11-20 11:59:36 +0000
commit9512838a5e9a4ad6f008bd0423e1056eb15cb242 (patch)
tree34a18d2fdc79c98112a384928b4c95fe7553a632 /src/fontcache.h
parentdfefcab47d563a7274ab8f410a8dcf2abc53cd62 (diff)
downloadopenttd-9512838a5e9a4ad6f008bd0423e1056eb15cb242.tar.xz
(svn r23275) -Codechange: allow loading of the monospace (freetype) font at another moment than the other fonts
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index 708070a7e..bfb547332 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -42,7 +42,7 @@ struct FreeTypeSettings {
extern FreeTypeSettings _freetype;
-void InitFreeType();
+void InitFreeType(bool monospace);
void UninitFreeType();
const Sprite *GetGlyph(FontSize size, uint32 key);
uint GetGlyphWidth(FontSize size, uint32 key);
@@ -63,7 +63,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
#else
/* Stub for initializiation */
-static inline void InitFreeType() { extern void ResetFontSizes(); ResetFontSizes(); }
+static inline void InitFreeType(bool monospace) { extern void ResetFontSizes(bool monospace); ResetFontSizes(monospace); }
static inline void UninitFreeType() {}
/** Get the Sprite for a glyph */