From ff975beeee6f21ebc5ccad6693f3ca5580d1e408 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 1 Oct 2004 09:03:01 +0000 Subject: cleanup svn-id: r15366 --- scumm/string.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'scumm/string.cpp') 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); -- cgit v1.2.3