mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Remove special case for char 0x20 (=space). No idea why it was there in the first place
svn-id: r18335
This commit is contained in:
parent
5d84b5afe3
commit
206d11f585
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user