From fac0b83df660536c497395fcad5ad55c54a5d352 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 29 Jun 2013 12:03:44 +0000 Subject: (svn r25511) -Fix-ish: add the same printable key assert to the sprite font cache as the freetype font cache --- src/fontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 2c1f7aafa..b51cecaf6 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -76,7 +76,7 @@ public: virtual const Sprite *GetGlyph(GlyphID key); virtual uint GetGlyphWidth(GlyphID key); virtual bool GetDrawGlyphShadow(); - virtual GlyphID MapCharToGlyph(WChar key) { return SPRITE_GLYPH | key; } + virtual GlyphID MapCharToGlyph(WChar key) { assert(IsPrintable(key)); return SPRITE_GLYPH | key; } virtual const void *GetFontTable(uint32 tag, size_t &length) { length = 0; return NULL; } }; -- cgit v1.2.3-54-g00ecf