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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Aug 12 19:10:48 CEST 2009


Revision: 43320
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43320&view=rev
Author:   lordhoto
Date:     2009-08-12 17:10:47 +0000 (Wed, 12 Aug 2009)

Log Message:
-----------
Implement difference for the Kyrandia 1 Amiga version in TextDisplayer::printCharacterText.

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

Modified: scummvm/trunk/engines/kyra/text.cpp
===================================================================
--- scummvm/trunk/engines/kyra/text.cpp	2009-08-12 14:08:09 UTC (rev 43319)
+++ scummvm/trunk/engines/kyra/text.cpp	2009-08-12 17:10:47 UTC (rev 43320)
@@ -226,19 +226,25 @@
 }
 
 void TextDisplayer::printCharacterText(const char *text, int8 charNum, int charX) {
-	uint8 colorTable[] = {0x0F, 0x09, 0xC9, 0x80, 0x5, 0x81, 0x0E, 0xD8, 0x55, 0x3A, 0x3a};
 	int top, left, x1, x2, w, x;
 	char *msg;
 
-	uint8 color = colorTable[charNum];
 	text = preprocessString(text);
 	int lineCount = buildMessageSubstrings(text);
 	w = getWidestLineWidth(lineCount);
 	x = charX;
 	calcWidestLineBounds(x1, x2, w, x);
 
-	if (_vm->gameFlags().platform == Common::kPlatformAmiga)
+	uint8 color = 0;
+	if (_vm->gameFlags().platform == Common::kPlatformAmiga) {
+		const uint8 colorTable[] = { 0x1F, 0x1B, 0xC9, 0x80, 0x1E, 0x81, 0x11, 0xD8, 0x55, 0x3A, 0x3A };
+		color = colorTable[charNum];
+
 		setTextColor(color);
+	} else {
+		const uint8 colorTable[] = { 0x0F, 0x09, 0xC9, 0x80, 0x05, 0x81, 0x0E, 0xD8, 0x55, 0x3A, 0x3A };
+		color = colorTable[charNum];
+	}
 
 	for (int i = 0; i < lineCount; ++i) {
 		top = i * 10 + _talkMessageY;


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