From 1e1e049e3266b3448c04b654fe0fb2b844ca6070 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 19 Apr 2010 11:59:46 +0000 Subject: SCI: added more comments for 0xD 0xA cases inside GetLongest() svn-id: r48715 --- engines/sci/graphics/text16.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sci') 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); -- cgit v1.2.3