[Scummvm-cvs-logs] SF.net SVN: scummvm:[39726] scummvm/trunk/engines/cine/pal.h
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Sat Mar 28 17:34:52 CET 2009
Revision: 39726
http://scummvm.svn.sourceforge.net/scummvm/?rev=39726&view=rev
Author: buddha_
Date: 2009-03-28 16:34:47 +0000 (Sat, 28 Mar 2009)
Log Message:
-----------
Cine::Palette: Add constants for normally used palette color counts and byte sizes.
Modified Paths:
--------------
scummvm/trunk/engines/cine/pal.h
Modified: scummvm/trunk/engines/cine/pal.h
===================================================================
--- scummvm/trunk/engines/cine/pal.h 2009-03-28 16:07:56 UTC (rev 39725)
+++ scummvm/trunk/engines/cine/pal.h 2009-03-28 16:34:47 UTC (rev 39726)
@@ -32,9 +32,13 @@
/*! \brief Low resolution (9-bit) color format used in Cine's 16-color modes. */
static const Graphics::PixelFormat kLowPalFormat = {2, 5, 5, 5, 8, 8, 4, 0, 0};
+static const int kLowPalNumColors = 16;
+static const int kLowPalNumBytes = kLowPalNumColors * kLowPalFormat.bytesPerPixel;
/*! \brief High resolution (24-bit) color format used in Cine's 256-color modes. */
static const Graphics::PixelFormat kHighPalFormat = {3, 0, 0, 0, 8, 0, 8, 16, 0};
+static const int kHighPalNumColors = 256;
+static const int kHighPalNumBytes = kHighPalNumColors * kHighPalFormat.bytesPerPixel;
/*! \brief The color format used by OSystem's setPalette-function. */
static const Graphics::PixelFormat kSystemPalFormat = {4, 0, 0, 0, 8, 0, 8, 16, 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