mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
GOB: skip '\r' or '\n' bytes when printing text
CRLF is sometimes found at the end of resource strings, but uselessly (the "printText" opcode has no is no "newline" capacity) Fixes garbage characters in Adibou2 diploma text.
This commit is contained in:
parent
4ae76a7812
commit
912f61c904
@ -96,6 +96,9 @@ void Font::drawLetter(Surface &surf, uint8 c, uint16 x, uint16 y,
|
||||
|
||||
uint16 data;
|
||||
|
||||
if (c == '\r' || c == '\n')
|
||||
return;
|
||||
|
||||
const byte *src = getCharData(c);
|
||||
if (!src) {
|
||||
warning("Font::drawLetter(): getCharData() == 0");
|
||||
|
Loading…
x
Reference in New Issue
Block a user