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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Sep 6 00:56:04 CEST 2010


Revision: 52578
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52578&view=rev
Author:   lordhoto
Date:     2010-09-05 22:56:03 +0000 (Sun, 05 Sep 2010)

Log Message:
-----------
KYRA: Constify some tables.

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

Modified: scummvm/trunk/engines/kyra/text_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/text_lol.cpp	2010-09-05 22:00:41 UTC (rev 52577)
+++ scummvm/trunk/engines/kyra/text_lol.cpp	2010-09-05 22:56:03 UTC (rev 52578)
@@ -204,10 +204,12 @@
 }
 
 void TextDisplayer_LoL::printMessage(uint16 type, const char *str, ...) {
-	static uint8 textColors256[] = { 0xfe, 0xa2, 0x84, 0x97, 0x9F };
-	static uint8 textColors16[] = { 0x33, 0xaa, 0x88, 0x55, 0x99 };
-	static uint8 soundEffect[] = { 0x0B, 0x00, 0x2B, 0x1B, 0x00 };
+	static const uint8 textColors256[] = { 0xfe, 0xa2, 0x84, 0x97, 0x9F };
+	static const uint8 textColors16[] = { 0x33, 0xaa, 0x88, 0x55, 0x99 };
+	static const uint8 soundEffect[] = { 0x0B, 0x00, 0x2B, 0x1B, 0x00 };
+
 	const uint8 *textColors = _vm->gameFlags().use16ColorMode ? textColors16 : textColors256;
+
 	if (type & 4)
 		type ^= 4;
 	else


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