aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-16 16:22:52 +0100
committerJohannes Schickel2011-02-16 16:22:52 +0100
commit4115c97883fcc50b994a6fafb097d3aff69395b6 (patch)
tree47c1eaf789139e4e481b486649a11ccd95173234
parentdd43dfc81c81f489d161ae66fd286ea50bb3e3ce (diff)
downloadscummvm-rg350-4115c97883fcc50b994a6fafb097d3aff69395b6.tar.gz
scummvm-rg350-4115c97883fcc50b994a6fafb097d3aff69395b6.tar.bz2
scummvm-rg350-4115c97883fcc50b994a6fafb097d3aff69395b6.zip
BACKENDS: Adapt DefaultPaletteManager to setPalette/grabPalette RGBA->RGB change.
-rw-r--r--backends/graphics/default-palette.h6
1 files 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);
}
};