From 4115c97883fcc50b994a6fafb097d3aff69395b6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 16 Feb 2011 16:22:52 +0100 Subject: BACKENDS: Adapt DefaultPaletteManager to setPalette/grabPalette RGBA->RGB change. --- backends/graphics/default-palette.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/graphics/default-palette.h b/backends/graphics/default-palette.h index 6e3a75350e..12436aae51 100644 --- a/backends/graphics/default-palette.h +++ b/backends/graphics/default-palette.h @@ -38,7 +38,7 @@ */ class DefaultPaletteManager : public PaletteManager { protected: - byte _palette[4 * 256]; + byte _palette[3 * 256]; /** * Subclasses should only implement this method and none of the others. @@ -51,12 +51,12 @@ protected: public: void setPalette(const byte *colors, uint start, uint num) { assert(start + num <= 256); - memcpy(_palette + 4 * start, colors, 4 * num); + memcpy(_palette + 3 * start, colors, 3 * num); setPaletteIntern(colors, start, num); } void grabPalette(byte *colors, uint start, uint num) { assert(start + num <= 256); - memcpy(colors, _palette + 4 * start, 4 * num); + memcpy(colors, _palette + 3 * start, 3 * num); } }; -- cgit v1.2.3