aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorMax Horn2003-06-02 23:54:52 +0000
committerMax Horn2003-06-02 23:54:52 +0000
commit3baff34226e276546e645faf85fe02d1bd067d92 (patch)
tree226e4cfed545e20298ae3ecb07ea908f4d7889cb /scumm/string.cpp
parentcb9c64aae2fc19ce21b6d47670c8fe80abda9f29 (diff)
downloadscummvm-rg350-3baff34226e276546e645faf85fe02d1bd067d92.tar.gz
scummvm-rg350-3baff34226e276546e645faf85fe02d1bd067d92.tar.bz2
scummvm-rg350-3baff34226e276546e645faf85fe02d1bd067d92.zip
use enqueueText for FT, too
svn-id: r8284
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 5d89378cc3..c141501e1f 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -336,57 +336,6 @@ void Scumm::CHARSET_1() {
gdi._mask.extend(_charset->_str);
}
-void Scumm::drawDescString(const byte *msg) {
- byte c, *buf, buffer[256];
-
- buf = _msgPtrToAdd = buffer;
- addMessageToStack(msg);
-
- _charsetBufPos = 0;
- _string[0].ypos += camera._cur.y - (_screenHeight / 2);
- _charset->_top = _string[0].ypos;
- _charset->_startLeft = _charset->_left = _string[0].xpos;
- _charset->_right = _screenWidth - 1;
- _charset->_center = _string[0].center;
- _charset->setColor(_string[0].color);
- _charset->_disableOffsX = _charset->_firstChar = true;
- _charset->setCurID(_string[0].charset);
- _charset->_nextLeft = _string[0].xpos;
- _charset->_nextTop = _string[0].ypos;
-
- // Center text
- _string[0].xpos -= _charset->getStringWidth(0, buffer) >> 1;
- if (_string[0].xpos < 0) {
- _string[0].xpos = 0;
- }
-
- _talkDelay = 1;
-
- if (_string[0].ypos + _charset->getFontHeight() > 0)
- restoreBG(ScummVM::Rect(0, _string[0].ypos, _screenWidth - 1, _string[0].ypos + _charset->getFontHeight()));
-
- _charset->_nextLeft = _string[0].xpos;
- _charset->_nextTop = _string[0].ypos;
-
- do {
- c = *buf++;
- if (c != 0 && c != 0xFF) {
- _charset->_left = _charset->_nextLeft;
- _charset->_top = _charset->_nextTop;
- _charset->printChar(c);
- _charset->_nextLeft = _charset->_left;
- _charset->_nextTop = _charset->_top;
- }
- } while (c);
- _haveMsg = 1;
-
- // hack: more 8 pixels at width and height while redraw
- // for proper description redraw while scrolling room
- ScummVM::Rect r(_charset->_str);
- r.grow(8);
- gdi._mask.extend(r);
-}
-
void Scumm::drawString(int a) {
byte buf[256];
byte *space;