aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/text.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-10 01:34:46 +0000
committerJohannes Schickel2009-08-10 01:34:46 +0000
commit2ccffb9075243a29db435ce545f14b0b1051da44 (patch)
tree3b5864932eb16d5e07dfa61b7124a4b76a68ee4f /engines/kyra/text.cpp
parent3ad62ee71bbf41a93f18ff789e0521795e29baab (diff)
downloadscummvm-rg350-2ccffb9075243a29db435ce545f14b0b1051da44.tar.gz
scummvm-rg350-2ccffb9075243a29db435ce545f14b0b1051da44.tar.bz2
scummvm-rg350-2ccffb9075243a29db435ce545f14b0b1051da44.zip
Remove dead code.
svn-id: r43199
Diffstat (limited to 'engines/kyra/text.cpp')
-rw-r--r--engines/kyra/text.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/engines/kyra/text.cpp b/engines/kyra/text.cpp
index baad69eaa7..c880b982cf 100644
--- a/engines/kyra/text.cpp
+++ b/engines/kyra/text.cpp
@@ -214,32 +214,6 @@ void TextDisplayer::printTalkTextMessage(const char *text, int x, int y, uint8 c
_talkMessagePrinted = true;
}
-void TextDisplayer::printIntroTextMessage(const char *text, int x, int y, uint8 col1, uint8 col2, uint8 col3, int dstPage, Screen::FontId font) {
- char *str = preprocessString(text);
- int lineCount = buildMessageSubstrings(str);
- int top = y - lineCount * 10;
- if (top < 0) {
- top = 0;
- }
- _talkMessageY = top;
- _talkMessageH = lineCount * 10;
- int w = getWidestLineWidth(lineCount);
- int x1, x2;
- calcWidestLineBounds(x1, x2, w, x);
- _talkCoords.x = x1;
- _talkCoords.w = w + 2;
- int curPage = _screen->setCurPage(dstPage);
-
- for (int i = 0; i < lineCount; ++i) {
- top = i * 10 + _talkMessageY;
- char *msg = &_talkSubstrings[i * TALK_SUBSTRING_LEN];
- int left = getCenterStringX(msg, x1, x2);
- printText(msg, left, top, col1, col2, col3, font);
- }
- _screen->_curPage = curPage;
- _talkMessagePrinted = true;
-}
-
void TextDisplayer::printText(const char *str, int x, int y, uint8 c0, uint8 c1, uint8 c2, Screen::FontId font) {
uint8 colorMap[] = { 0, 15, 12, 12 };
colorMap[3] = c1;