aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorMax Horn2004-10-01 09:03:01 +0000
committerMax Horn2004-10-01 09:03:01 +0000
commitff975beeee6f21ebc5ccad6693f3ca5580d1e408 (patch)
treeeec2e23f72dce42f5433791c6106177fe14d10df /scumm/string.cpp
parent54cec2e011b56d875022ec6a6c05654b08300876 (diff)
downloadscummvm-rg350-ff975beeee6f21ebc5ccad6693f3ca5580d1e408.tar.gz
scummvm-rg350-ff975beeee6f21ebc5ccad6693f3ca5580d1e408.tar.bz2
scummvm-rg350-ff975beeee6f21ebc5ccad6693f3ca5580d1e408.zip
cleanup
svn-id: r15366
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index ade944b1b2..67f1af3ad8 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -712,32 +712,26 @@ void ScummEngine::drawBlastTexts() {
buf = _blastTextQueue[i].text;
_charset->_top = _blastTextQueue[i].ypos + _screenTop;
- _charset->_startLeft = _charset->_left = _blastTextQueue[i].xpos;
+ _charset->_left = _blastTextQueue[i].xpos;
_charset->_right = _screenWidth - 1;
_charset->_center = _blastTextQueue[i].center;
_charset->setColor(_blastTextQueue[i].color);
_charset->_disableOffsX = _charset->_firstChar = true;
_charset->setCurID(_blastTextQueue[i].charset);
- _charset->_nextLeft = _blastTextQueue[i].xpos;
- _charset->_nextTop = _charset->_top;
// Center text if necessary
if (_charset->_center) {
- _charset->_nextLeft -= _charset->getStringWidth(0, buf) / 2;
- if (_charset->_nextLeft < 0)
- _charset->_nextLeft = 0;
+ _charset->_left -= _charset->getStringWidth(0, buf) / 2;
+ if (_charset->_left < 0)
+ _charset->_left = 0;
}
do {
c = *buf++;
if (c != 0 && c != 0xFF) {
- _charset->_left = _charset->_nextLeft;
- _charset->_top = _charset->_nextTop;
if (c >= 0x80 && _useCJKMode)
c += *buf++ * 256;
_charset->printChar(c);
- _charset->_nextLeft = _charset->_left;
- _charset->_nextTop = _charset->_top;
}
} while (c);