[Scummvm-cvs-logs] scummvm master -> ea4260529783f80db0abde70c6b1723cf3c6f720
bluegr
md5 at scummvm.org
Wed Jun 20 09:56:18 CEST 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ea42605297 SCI: Remove multibyte character processing code from SCI32
Commit: ea4260529783f80db0abde70c6b1723cf3c6f720
https://github.com/scummvm/scummvm/commit/ea4260529783f80db0abde70c6b1723cf3c6f720
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2012-06-20T00:55:24-07:00
Commit Message:
SCI: Remove multibyte character processing code from SCI32
There are no Japanese/PC-98 SCI32 games, so this code is not needed
Changed paths:
engines/sci/graphics/text32.cpp
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp
index e0f16e7..f14ae2e 100644
--- a/engines/sci/graphics/text32.cpp
+++ b/engines/sci/graphics/text32.cpp
@@ -165,7 +165,7 @@ reg_t GfxText32::createTextBitmapInternal(Common::String &text, reg_t textObject
warning("Invalid alignment %d used in TextBox()", alignment);
}
- unsigned char curChar;
+ byte curChar;
for (int i = 0; i < charCount; i++) {
curChar = txt[i];
@@ -174,7 +174,6 @@ reg_t GfxText32::createTextBitmapInternal(Common::String &text, reg_t textObject
case 0x0A:
case 0x0D:
case 0:
- case 0x9781: // this one is used by SQ4/japanese as line break as well
break;
case 0x7C:
warning("Code processing isn't implemented in SCI32");
@@ -317,7 +316,7 @@ void GfxText32::StringWidth(const char *str, GuiResourceId fontId, int16 &textWi
}
void GfxText32::Width(const char *text, int16 from, int16 len, GuiResourceId fontId, int16 &textWidth, int16 &textHeight, bool restoreFont) {
- uint16 curChar;
+ byte curChar;
textWidth = 0; textHeight = 0;
GfxFont *font = _cache->getFont(fontId);
@@ -329,7 +328,6 @@ void GfxText32::Width(const char *text, int16 from, int16 len, GuiResourceId fon
switch (curChar) {
case 0x0A:
case 0x0D:
- case 0x9781: // this one is used by SQ4/japanese as line break as well
textHeight = MAX<int16> (textHeight, font->getHeight());
break;
case 0x7C:
More information about the Scummvm-git-logs
mailing list