aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-19 11:59:46 +0000
committerMartin Kiewitz2010-04-19 11:59:46 +0000
commit1e1e049e3266b3448c04b654fe0fb2b844ca6070 (patch)
tree6ae94e8fd1a855605a5d897d689a9a3bc12c4442 /engines/sci
parentac2ffc65cbdedcfff6fd33f227dd6d27a4b60ce1 (diff)
downloadscummvm-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/sci')
-rw-r--r--engines/sci/graphics/text16.cpp3
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);