aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMax Horn2005-06-04 13:19:53 +0000
committerMax Horn2005-06-04 13:19:53 +0000
commit206d11f585d6775658897a05627c9a0bebfd7fcd (patch)
tree3ef221847622b4638677f8ef859801fb55685f43 /graphics
parent5d84b5afe3ca330aa530ef34d6be552aa1016ef2 (diff)
downloadscummvm-rg350-206d11f585d6775658897a05627c9a0bebfd7fcd.tar.gz
scummvm-rg350-206d11f585d6775658897a05627c9a0bebfd7fcd.tar.bz2
scummvm-rg350-206d11f585d6775658897a05627c9a0bebfd7fcd.zip
Remove special case for char 0x20 (=space). No idea why it was there in the first place
svn-id: r18335
Diffstat (limited to 'graphics')
-rw-r--r--graphics/font.cpp4
1 files changed, 0 insertions, 4 deletions
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;
}