From 206d11f585d6775658897a05627c9a0bebfd7fcd Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 4 Jun 2005 13:19:53 +0000 Subject: Remove special case for char 0x20 (=space). No idea why it was there in the first place svn-id: r18335 --- graphics/font.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'graphics/font.cpp') diff --git a/graphics/font.cpp b/graphics/font.cpp index 3467ef6712..10d237747e 100644 --- a/graphics/font.cpp +++ b/graphics/font.cpp @@ -29,8 +29,6 @@ int NewFont::getCharWidth(byte chr) const { return desc.maxwidth; // If this character is not included in the font, use the default char. if (chr < desc.firstchar || desc.firstchar + desc.size < chr) { - if (chr == ' ') - return desc.maxwidth / 2; chr = desc.defaultchar; } return desc.width[chr - desc.firstchar]; @@ -45,8 +43,6 @@ void NewFont::drawChar(Surface *dst, byte chr, int tx, int ty, uint32 color) con // If this character is not included in the font, use the default char. if (chr < desc.firstchar || chr >= desc.firstchar + desc.size) { - if (chr == ' ') - return; chr = desc.defaultchar; } -- cgit v1.2.3