diff options
Diffstat (limited to 'engines/sci/graphics/text16.cpp')
-rw-r--r-- | engines/sci/graphics/text16.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp index 531895cdfb..ea648c7ad2 100644 --- a/engines/sci/graphics/text16.cpp +++ b/engines/sci/graphics/text16.cpp @@ -178,12 +178,15 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF } break; + // We need to add 0xD, 0xA and 0xD 0xA to curCharCount and then exit case 0xD: // Check, if 0xA is following, if so include it as well if ((*(const unsigned char *)text) == 0xA) curCharCount++; + // it's meant to pass through here case 0xA: curCharCount++; + // and it's also meant to pass through here case 0: SetFont(oldFontId); _ports->penColor(oldPenColor); |