aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-13 15:11:29 +0100
committerJohannes Schickel2011-02-14 17:08:32 +0100
commit9623ea05d6ff535cdee9098193ea32e04589d534 (patch)
tree6e30b7c180254790b54f24a368f75b6b5ee4efd4 /engines
parent7b8b73f64ae035a4bc883bf97d7686a6db06aa70 (diff)
downloadscummvm-rg350-9623ea05d6ff535cdee9098193ea32e04589d534.tar.gz
scummvm-rg350-9623ea05d6ff535cdee9098193ea32e04589d534.tar.bz2
scummvm-rg350-9623ea05d6ff535cdee9098193ea32e04589d534.zip
CINE: Adapt to setPalette RGBA->RGB change.
Diffstat (limited to 'engines')
-rw-r--r--engines/cine/pal.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp
index a074bd3f09..3c8ffc295b 100644
--- a/engines/cine/pal.cpp
+++ b/engines/cine/pal.cpp
@@ -185,16 +185,16 @@ const Graphics::PixelFormat &Palette::colorFormat() const {
}
void Palette::setGlobalOSystemPalette() const {
- byte buf[256 * 4]; // Allocate space for the largest possible palette
+ byte buf[256 * 3]; // Allocate space for the largest possible palette
// The color format used by OSystem's setPalette-function:
- save(buf, sizeof(buf), Graphics::PixelFormat(4, 8, 8, 8, 0, 0, 8, 16, 0), CINE_LITTLE_ENDIAN);
+ save(buf, sizeof(buf), Graphics::PixelFormat(3, 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
// game palette to allow transparent dialog boxes. To support that in our code
// we do calculate that palette over here and append it to the screen palette.
- for (uint i = 0; i < 16 * 4; ++i)
- buf[16 * 4 + i] = buf[i] >> 1;
+ for (uint i = 0; i < 16 * 3; ++i)
+ buf[16 * 3 + i] = buf[i] >> 1;
g_system->getPaletteManager()->setPalette(buf, 0, colorCount() * 2);
} else {