[Scummvm-cvs-logs] SF.net SVN: scummvm:[41892] scummvm/trunk/engines/kyra/screen.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri Jun 26 01:04:32 CEST 2009
Revision: 41892
http://scummvm.svn.sourceforge.net/scummvm/?rev=41892&view=rev
Author: lordhoto
Date: 2009-06-25 23:04:32 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Only initialize palettes with 16 colors in (real) 16 color games.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/screen.cpp
Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp 2009-06-25 23:04:21 UTC (rev 41891)
+++ scummvm/trunk/engines/kyra/screen.cpp 2009-06-25 23:04:32 UTC (rev 41892)
@@ -122,7 +122,7 @@
memset(_shapePages, 0, sizeof(_shapePages));
const int paletteCount = (_vm->gameFlags().platform == Common::kPlatformAmiga) ? 12 : 4;
- const int numColors = (_vm->gameFlags().platform == Common::kPlatformAmiga) ? 32 : 256;
+ const int numColors = _use16ColorMode ? 16 : ((_vm->gameFlags().platform == Common::kPlatformAmiga) ? 32 : 256);
_screenPalette = new Palette(numColors);
assert(_screenPalette);
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