aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/charset.cpp
diff options
context:
space:
mode:
authorOri Avtalion2010-04-12 21:21:06 +0000
committerOri Avtalion2010-04-12 21:21:06 +0000
commit2fc9d6845b51dd589995891681ac01d241e9a2c9 (patch)
treedf054e0e7ca91a179ab140fd5c2961f4e0345598 /engines/agos/charset.cpp
parent3b252cb4c50494a60ddd3f40589336a757024f3e (diff)
downloadscummvm-rg350-2fc9d6845b51dd589995891681ac01d241e9a2c9.tar.gz
scummvm-rg350-2fc9d6845b51dd589995891681ac01d241e9a2c9.tar.bz2
scummvm-rg350-2fc9d6845b51dd589995891681ac01d241e9a2c9.zip
Apply patch #2982163 - CONFIG: Use HE keyword instead of HB for the Hebrew language
svn-id: r48645
Diffstat (limited to 'engines/agos/charset.cpp')
-rw-r--r--engines/agos/charset.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp
index 7d93f26f7b..5e9279c491 100644
--- a/engines/agos/charset.cpp
+++ b/engines/agos/charset.cpp
@@ -319,7 +319,7 @@ void AGOSEngine::renderString(uint vgaSpriteId, uint color, uint width, uint hei
if (count != 0)
memset(dst, 0, count);
- if (_language == Common::HB_ISR)
+ if (_language == Common::HE_ISR)
dst += width - 1; // For Hebrew, start at the right edge, not the left.
dst_org = dst;
@@ -328,7 +328,7 @@ void AGOSEngine::renderString(uint vgaSpriteId, uint color, uint width, uint hei
dst_org += width * textHeight;
dst = dst_org;
} else if ((chr -= ' ') == 0) {
- dst += (_language == Common::HB_ISR ? -6 : 6); // Hebrew moves to the left, all others to the right
+ dst += (_language == Common::HE_ISR ? -6 : 6); // Hebrew moves to the left, all others to the right
} else {
byte *img_hdr, *img;
uint i, img_width, img_height;
@@ -345,7 +345,7 @@ void AGOSEngine::renderString(uint vgaSpriteId, uint color, uint width, uint hei
img = src + READ_LE_UINT16(img_hdr);
}
- if (_language == Common::HB_ISR)
+ if (_language == Common::HE_ISR)
dst -= img_width - 1; // For Hebrew, move from right edge to left edge of image.
byte *cur_dst = dst;
@@ -371,7 +371,7 @@ void AGOSEngine::renderString(uint vgaSpriteId, uint color, uint width, uint hei
cur_dst += width;
} while (--img_height);
- if (_language != Common::HB_ISR) // Hebrew character movement is done higher up
+ if (_language != Common::HE_ISR) // Hebrew character movement is done higher up
dst += img_width - 1;
}
}
@@ -499,8 +499,8 @@ void AGOSEngine::windowPutChar(WindowBlock *window, byte c, byte b) {
clearWindow(window);
} else if (c == 13 || c == 10) {
windowNewLine(window);
- } else if ((c == 1 && _language != Common::HB_ISR) || (c == 8)) {
- if (_language == Common::HB_ISR) {
+ } else if ((c == 1 && _language != Common::HE_ISR) || (c == 8)) {
+ if (_language == Common::HE_ISR) {
if (b >= 64 && b < 91)
width = _hebrewCharWidths [b - 64];
@@ -546,7 +546,7 @@ void AGOSEngine::windowPutChar(WindowBlock *window, byte c, byte b) {
window->textRow--;
}
- if (_language == Common::HB_ISR) {
+ if (_language == Common::HE_ISR) {
if (c >= 64 && c < 91)
width = _hebrewCharWidths [c - 64];
window->textColumnOffset -= width;