diff options
author | Martin Kiewitz | 2010-04-20 11:13:09 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-20 11:13:09 +0000 |
commit | 45833f7e9a497391e1720ba7e3ff10e4d21691d0 (patch) | |
tree | b149e68e743d1301539346ebdaf30534eeb1825f /engines | |
parent | dead0db8d89cdfb256aeae831a637872aa481c26 (diff) | |
download | scummvm-rg350-45833f7e9a497391e1720ba7e3ff10e4d21691d0.tar.gz scummvm-rg350-45833f7e9a497391e1720ba7e3ff10e4d21691d0.tar.bz2 scummvm-rg350-45833f7e9a497391e1720ba7e3ff10e4d21691d0.zip |
SCI: sq4/japanese uses sjis 0x9781 for line breaks as well
svn-id: r48742
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 3adb0699b4..15cc3fd5a2 100644 --- a/engines/sci/graphics/text16.cpp +++ b/engines/sci/graphics/text16.cpp @@ -190,6 +190,7 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF curCharCount++; // it's meant to pass through here case 0xA: + case 0x9781: // this one is used by SQ4/japanese as line break as well curCharCount++; // and it's also meant to pass through here case 0: @@ -233,6 +234,7 @@ void GfxText16::Width(const char *text, int16 from, int16 len, GuiResourceId org switch (curChar) { case 0x0A: case 0x0D: + case 0x9781: // this one is used by SQ4/japanese as line break as well textHeight = MAX<int16> (textHeight, _ports->_curPort->fontHeight); break; case 0x7C: @@ -325,6 +327,7 @@ void GfxText16::Draw(const char *text, int16 from, int16 len, GuiResourceId orgF case 0x0A: case 0x0D: case 0: + case 0x9781: // this one is used by SQ4/japanese as line break as well break; case 0x7C: if (getSciVersion() >= SCI_VERSION_1_1) { |