mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
SCI: sierra sci reacts on 0xD and 0xA to end a line. We only reacted on 0xA and ignored 0xD before (fixes subtitles in multilingual games, because the official subtitle separator is 0xD'----'0xD)
svn-id: r48699
This commit is contained in:
parent
f68dfd61de
commit
2590fd8c2a
@ -179,9 +179,9 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF
|
||||
break;
|
||||
|
||||
case 0xD:
|
||||
curCharCount++;
|
||||
continue;
|
||||
|
||||
// Check, if 0xA is following, if so include it as well
|
||||
if ((*(unsigned char *)text) == 0xA)
|
||||
curCharCount++;
|
||||
case 0xA:
|
||||
curCharCount++;
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user