aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-15 23:59:31 +0100
committerJohannes Schickel2011-02-15 23:59:31 +0100
commitaafebe138921f3fc2c5595c7d63f95bdd0c9382b (patch)
tree89b694f3624d46b274dfaafa8b958de23920b2c2 /backends/platform/ds/arm9/source
parent4d30c6f7c91dcf7376cb8a6711b3cc9cdc92012a (diff)
downloadscummvm-rg350-aafebe138921f3fc2c5595c7d63f95bdd0c9382b.tar.gz
scummvm-rg350-aafebe138921f3fc2c5595c7d63f95bdd0c9382b.tar.bz2
scummvm-rg350-aafebe138921f3fc2c5595c7d63f95bdd0c9382b.zip
DS: Adapt to setPalette/grabPalette RGBA->RGB change.
This change is not tested, but should hopefully work fine.
Diffstat (limited to 'backends/platform/ds/arm9/source')
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp
index 55e3be6cca..3ad92b4355 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.cpp
+++ b/backends/platform/ds/arm9/source/osystem_ds.cpp
@@ -204,7 +204,7 @@ void OSystem_DS::setPalette(const byte *colors, uint start, uint num) {
}
// if (num == 255) consolePrintf("pal:%d r:%d g:%d b:%d\n", r, red, green, blue);
- colors += 4;
+ colors += 3;
}
}
@@ -235,7 +235,7 @@ void OSystem_DS::setCursorPalette(const byte *colors, uint start, uint num) {
u16 paletteValue = red | (green << 5) | (blue << 10);
_cursorPalette[r] = paletteValue;
- colors += 4;
+ colors += 3;
}
_disableCursorPalette = false;
@@ -266,7 +266,6 @@ void OSystem_DS::grabPalette(unsigned char *colours, uint start, uint num) {
*colours++ = (BG_PALETTE[r] & 0x001F) << 3;
*colours++ = (BG_PALETTE[r] & 0x03E0) >> 5 << 3;
*colours++ = (BG_PALETTE[r] & 0x7C00) >> 10 << 3;
- colours++;
}
}