aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-08-31 18:57:08 +0000
committerPaweł Kołodziejski2002-08-31 18:57:08 +0000
commitc1cbba1d652f694ef95996cfd574f6182c08eb28 (patch)
tree83130b383f8334deaa498889f01484d9e3007979 /scumm/string.cpp
parentbb71d9e67736d4b6c08b4f8e6d780cf8a94113b7 (diff)
downloadscummvm-rg350-c1cbba1d652f694ef95996cfd574f6182c08eb28.tar.gz
scummvm-rg350-c1cbba1d652f694ef95996cfd574f6182c08eb28.tar.bz2
scummvm-rg350-c1cbba1d652f694ef95996cfd574f6182c08eb28.zip
more fixes
svn-id: r4888
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 2509811e32..140094b31d 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -219,7 +219,7 @@ void Scumm::CHARSET_1()
if (a && string[0].overhead != 0) {
if (!(_features & GF_AFTER_V6)) {
- string[0].xpos = a->x - camera._cur.x + 160;
+ string[0].xpos = a->x - camera._cur.x + (_vm->_realWidth / 2);
if (_vars[VAR_V5_TALK_STRING_Y] < 0) {
s = (a->scaley * (int)_vars[VAR_V5_TALK_STRING_Y]) / 0xFF;
@@ -451,7 +451,7 @@ void Scumm::description()
buffer = charset._buffer + charset._bufPos;
string[0].ypos = camera._cur.y + 88;
- string[0].xpos = 160 - (charset.getStringWidth(0, buffer, 0) >> 1);
+ string[0].xpos = (_vm->_realWidth / 2) - (charset.getStringWidth(0, buffer, 0) >> 1);
if (string[0].xpos < 0)
string[0].xpos = 0;