diff options
author | Martin Kiewitz | 2010-04-19 11:59:46 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-19 11:59:46 +0000 |
commit | 1e1e049e3266b3448c04b654fe0fb2b844ca6070 (patch) | |
tree | 6ae94e8fd1a855605a5d897d689a9a3bc12c4442 /engines | |
parent | ac2ffc65cbdedcfff6fd33f227dd6d27a4b60ce1 (diff) | |
download | scummvm-rg350-1e1e049e3266b3448c04b654fe0fb2b844ca6070.tar.gz scummvm-rg350-1e1e049e3266b3448c04b654fe0fb2b844ca6070.tar.bz2 scummvm-rg350-1e1e049e3266b3448c04b654fe0fb2b844ca6070.zip |
SCI: added more comments for 0xD 0xA cases inside GetLongest()
svn-id: r48715
Diffstat (limited to 'engines')
-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); |