aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-29 18:27:35 +0000
committerMax Horn2002-11-29 18:27:35 +0000
commita730f7f6df8ff29c807a5dc57b70ce9b5efde30f (patch)
treea77496b48df4a9382900b35a6082d6b753f17cbb /scumm/string.cpp
parent50e2752ba183a5d77a92d5949404079eda63e253 (diff)
downloadscummvm-rg350-a730f7f6df8ff29c807a5dc57b70ce9b5efde30f.tar.gz
scummvm-rg350-a730f7f6df8ff29c807a5dc57b70ce9b5efde30f.tar.bz2
scummvm-rg350-a730f7f6df8ff29c807a5dc57b70ce9b5efde30f.zip
more cleanup
svn-id: r5752
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 89dd4b9721..e98b067717 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -242,7 +242,7 @@ void Scumm::CHARSET_1()
charset._top = _string[0].ypos;
charset._left = _string[0].xpos;
- charset._left2 = _string[0].xpos;
+ charset._startLeft = _string[0].xpos;
charset._curId = _string[0].charset;
if (a && a->charset)
@@ -475,7 +475,7 @@ void Scumm::description()
charset._top = _string[0].ypos;
charset._left = _string[0].xpos;
- charset._left2 = _string[0].xpos;
+ charset._startLeft = _string[0].xpos;
charset._right = _realWidth - 1;
charset._xpos2 = _string[0].xpos;
charset._ypos2 = _string[0].ypos;
@@ -523,7 +523,7 @@ void Scumm::drawDescString(byte *msg)
charset._bufPos = 0;
charset._top = _string[0].ypos;
charset._left = _string[0].xpos;
- charset._left2 = _string[0].xpos;
+ charset._startLeft = _string[0].xpos;
charset._right = _realWidth - 1;
charset._xpos2 = _string[0].xpos;
charset._ypos2 = _string[0].ypos;
@@ -568,13 +568,13 @@ void Scumm::drawString(int a)
byte buf[256];
byte *charsetptr, *space;
int i;
- byte byte1 = 0, chr;
+ byte fontHeight = 0, chr;
uint color;
_msgPtrToAdd = buf;
_messagePtr = addMessageToStack(_messagePtr);
- charset._left2 = charset._left = _string[a].xpos;
+ charset._startLeft = charset._left = _string[a].xpos;
charset._top = _string[a].ypos;
charset._curId = _string[a].charset;
charset._center = _string[a].center;
@@ -595,7 +595,7 @@ void Scumm::drawString(int a)
else
charset._colorMap[i] = _charsetData[charset._curId][i];
- byte1 = charsetptr[1];
+ fontHeight = charsetptr[1];
}
_msgPtrToAdd = buf;
@@ -648,11 +648,11 @@ void Scumm::drawString(int a)
case 1:
case 8:
if (charset._center) {
- charset._left = charset._left2 - charset.getStringWidth(a, buf, i); // FIXME - shouldn't this be getStringWidth() / 2 ?!?
+ charset._left = charset._startLeft - charset.getStringWidth(a, buf, i);
} else {
- charset._left = charset._left2;
+ charset._left = charset._startLeft;
}
- charset._top += byte1;
+ charset._top += fontHeight;
break;
case 12:
color = buf[i] + (buf[i + 1] << 8);
@@ -872,7 +872,7 @@ void Scumm::initCharset(int charsetno)
_string[0].t_charset = charsetno;
_string[1].t_charset = charsetno;
- for (i = 0; i < 0x10; i++)
+ for (i = 0; i < 16; i++)
if (_features & GF_SMALL_HEADER)
charset._colorMap[i] = _charsetData[charset._curId][i - 12]; // FIXME - do we really want to access index -12 to -9 ?
else