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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Jun 26 02:11:57 CEST 2009


Revision: 41895
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41895&view=rev
Author:   lordhoto
Date:     2009-06-26 00:11:56 +0000 (Fri, 26 Jun 2009)

Log Message:
-----------
Implement PC98 text mode color palette.

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

Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp	2009-06-26 00:06:56 UTC (rev 41894)
+++ scummvm/trunk/engines/kyra/screen.cpp	2009-06-26 00:11:56 UTC (rev 41895)
@@ -138,6 +138,21 @@
 
 	setScreenPalette(getPalette(0));
 
+	// We setup the PC98 text mode palette at [16, 24], since that will be used
+	// for KANJI characters in Lands of Lore.
+	if (_use16ColorMode && _vm->gameFlags().platform == Common::kPlatformPC98) {
+		uint8 palette[8 * 4];
+
+		for (int i = 0; i < 8; ++i) {
+			palette[i * 4 + 0] = ((i >> 1) & 1) * 0xFF;
+			palette[i * 4 + 1] = ((i >> 2) & 1)	* 0xFF;
+			palette[i * 4 + 2] = ((i >> 0) & 1) * 0xFF;
+			palette[i * 4 + 3] = 0;
+
+			_system->setPalette(palette, 16, 8);
+		}
+	}
+
 	_curDim = 0;
 	_charWidth = 0;
 	_charOffset = 0;


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