[Scummvm-cvs-logs] SF.net SVN: scummvm:[52608] scummvm/trunk/engines/cine/pal.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Sep 6 23:04:13 CEST 2010


Revision: 52608
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52608&view=rev
Author:   lordhoto
Date:     2010-09-06 21:04:12 +0000 (Mon, 06 Sep 2010)

Log Message:
-----------
CINE: Get rid of needless static variable.

Modified Paths:
--------------
    scummvm/trunk/engines/cine/pal.cpp

Modified: scummvm/trunk/engines/cine/pal.cpp
===================================================================
--- scummvm/trunk/engines/cine/pal.cpp	2010-09-06 20:34:00 UTC (rev 52607)
+++ scummvm/trunk/engines/cine/pal.cpp	2010-09-06 21:04:12 UTC (rev 52608)
@@ -186,8 +186,7 @@
 void Palette::setGlobalOSystemPalette() const {
 	byte buf[256 * 4]; // Allocate space for the largest possible palette
 	// The color format used by OSystem's setPalette-function:
-	static const Graphics::PixelFormat kSystemPalFormat(4, 8, 8, 8, 0, 0, 8, 16, 0);
-	save(buf, sizeof(buf), kSystemPalFormat, CINE_LITTLE_ENDIAN);
+	save(buf, sizeof(buf), Graphics::PixelFormat(4, 8, 8, 8, 0, 0, 8, 16, 0), CINE_LITTLE_ENDIAN);
 
 	if (g_cine->getPlatform() == Common::kPlatformAmiga && colorCount() == 16) {
 		// The Amiga version of Future Wars does use the upper 16 colors for a darkened


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