[Scummvm-cvs-logs] SF.net SVN: scummvm:[43731] scummvm/trunk/engines/cine/pal.h
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Tue Aug 25 21:18:32 CEST 2009
Revision: 43731
http://scummvm.svn.sourceforge.net/scummvm/?rev=43731&view=rev
Author: buddha_
Date: 2009-08-25 19:18:32 +0000 (Tue, 25 Aug 2009)
Log Message:
-----------
Fix Cine's predefined palette formats (They were all broken by the gsoc2009-16bit-branch's merge in r43577 because of incorrect conversion to PixelFormat's constructor usage).
Modified Paths:
--------------
scummvm/trunk/engines/cine/pal.h
Modified: scummvm/trunk/engines/cine/pal.h
===================================================================
--- scummvm/trunk/engines/cine/pal.h 2009-08-25 18:27:55 UTC (rev 43730)
+++ scummvm/trunk/engines/cine/pal.h 2009-08-25 19:18:32 UTC (rev 43731)
@@ -36,7 +36,7 @@
#define kLowPalNumBytes ((kLowPalNumColors) * (kLowPalBytesPerColor))
/*! \brief Low resolution (9-bit) color format used in Cine's 16-color modes. */
- static const Graphics::PixelFormat kLowPalFormat(kLowPalBytesPerColor, 5, 5, 5, 8, 8, 4, 0, 0);
+static const Graphics::PixelFormat kLowPalFormat(kLowPalBytesPerColor, 3, 3, 3, 0, 8, 4, 0, 0);
// Constants related to kHighPalFormat
@@ -45,10 +45,10 @@
#define kHighPalNumBytes ((kHighPalNumColors) * (kHighPalBytesPerColor))
/*! \brief High resolution (24-bit) color format used in Cine's 256-color modes. */
-static const Graphics::PixelFormat kHighPalFormat(kHighPalBytesPerColor, 0, 0, 0, 8, 0, 8, 16, 0);
+static const Graphics::PixelFormat kHighPalFormat(kHighPalBytesPerColor, 8, 8, 8, 0, 0, 8, 16, 0);
/*! \brief The color format used by OSystem's setPalette-function. */
-static const Graphics::PixelFormat kSystemPalFormat(4, 0, 0, 0, 8, 0, 8, 16, 0);
+static const Graphics::PixelFormat kSystemPalFormat(4, 8, 8, 8, 0, 0, 8, 16, 0);
/*! \brief Endian types. Used at least by Palette class's load and save functions.
* TODO: Move somewhere more general as this is definitely not Cine-engine specific
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