aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKari Salminen2009-03-28 16:34:47 +0000
committerKari Salminen2009-03-28 16:34:47 +0000
commit9a21bd26e98e01f1b7b9713ad20c8e5cd88b40a9 (patch)
tree9627f9eddbf3ebc4b91edf5d0c484ab969f57832
parentadbcfabcb1148009ab266b38c09275f6b01ba199 (diff)
downloadscummvm-rg350-9a21bd26e98e01f1b7b9713ad20c8e5cd88b40a9.tar.gz
scummvm-rg350-9a21bd26e98e01f1b7b9713ad20c8e5cd88b40a9.tar.bz2
scummvm-rg350-9a21bd26e98e01f1b7b9713ad20c8e5cd88b40a9.zip
Cine::Palette: Add constants for normally used palette color counts and byte sizes.
svn-id: r39726
-rw-r--r--engines/cine/pal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cine/pal.h b/engines/cine/pal.h
index f63073763c..9082bb3865 100644
--- a/engines/cine/pal.h
+++ b/engines/cine/pal.h
@@ -32,9 +32,13 @@ namespace Cine {
/*! \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};