Skip to content

Commit

Permalink
DREAMWEB: Also filter out invalid characters in getNextWord()
Browse files Browse the repository at this point in the history
Thanks again to eriktorbjorn for spotting this. This one should be the
last place where we should filter out invalid characters
  • Loading branch information
bluegr committed Nov 5, 2012
1 parent bdb8bda commit 06a2ac4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/dreamweb/print.cpp
Expand Up @@ -49,7 +49,9 @@ uint8 DreamWebEngine::getNextWord(const GraphicsFile &charSet, const uint8 *stri
return 0;
}
firstChar = modifyChar(firstChar);
if (firstChar != 255) {
// WORKAROUND: Also filter out invalid characters here (refer to the
// workaround in printChar() below for more info).
if (firstChar >= 32 && firstChar != 255) {
uint8 secondChar = *string;
uint8 width = charSet._frames[firstChar - 32 + _charShift].width;
width = kernChars(firstChar, secondChar, width);
Expand Down

0 comments on commit 06a2ac4

Please sign in to comment.