From b5851dab00986c7e441eecc06b3630a3e58e7d8d Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 19 Apr 2010 15:30:21 +0000 Subject: SCI: added even more comments about the 0xD 0xA inside GetLongest() svn-id: r48718 --- engines/sci/graphics/text16.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp index ea648c7ad2..db73f507f3 100644 --- a/engines/sci/graphics/text16.cpp +++ b/engines/sci/graphics/text16.cpp @@ -179,6 +179,11 @@ 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 + // which means, we split text like + // 'Mature, experienced software analyst available.' 0xD 0xA + // 'Bug installation a proven speciality. "No version too clean."' (normal game text, this is from lsl2) + // and 0xA '-------' 0xA (which is the official sierra subtitle separator) + // Sierra did it the same way. case 0xD: // Check, if 0xA is following, if so include it as well if ((*(const unsigned char *)text) == 0xA) -- cgit v1.2.3