[Scummvm-cvs-logs] SF.net SVN: scummvm:[43199] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Aug 10 03:34:46 CEST 2009


Revision: 43199
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43199&view=rev
Author:   lordhoto
Date:     2009-08-10 01:34:46 +0000 (Mon, 10 Aug 2009)

Log Message:
-----------
Remove dead code.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/text.cpp
    scummvm/trunk/engines/kyra/text.h

Modified: scummvm/trunk/engines/kyra/text.cpp
===================================================================
--- scummvm/trunk/engines/kyra/text.cpp	2009-08-10 01:34:29 UTC (rev 43198)
+++ scummvm/trunk/engines/kyra/text.cpp	2009-08-10 01:34:46 UTC (rev 43199)
@@ -214,32 +214,6 @@
 	_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;

Modified: scummvm/trunk/engines/kyra/text.h
===================================================================
--- scummvm/trunk/engines/kyra/text.h	2009-08-10 01:34:29 UTC (rev 43198)
+++ scummvm/trunk/engines/kyra/text.h	2009-08-10 01:34:46 UTC (rev 43199)
@@ -50,8 +50,6 @@
 	virtual void calcWidestLineBounds(int &x1, int &x2, int w, int cx);
 	virtual void restoreTalkTextMessageBkgd(int srcPage, int dstPage);
 	void printTalkTextMessage(const char *text, int x, int y, uint8 color, int srcPage, int dstPage);
-	void printIntroTextMessage(const char *text, int x, int y, uint8 col1, uint8 col2, uint8 col3,
-			int dstPage, Screen::FontId font=Screen::FID_8_FNT);
 	virtual void printText(const char *str, int x, int y, uint8 c0, uint8 c1, uint8 c2, Screen::FontId font=Screen::FID_8_FNT);
 	void printCharacterText(const char *text, int8 charNum, int charX);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list