aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-15 23:57:35 +0100
committerJohannes Schickel2011-02-15 23:57:35 +0100
commit4d30c6f7c91dcf7376cb8a6711b3cc9cdc92012a (patch)
tree1e651d8f9b1db7250762777be73067073785a8ef /backends
parent3c968128ea82166d4fe1672f00d25c6aa36417f6 (diff)
downloadscummvm-rg350-4d30c6f7c91dcf7376cb8a6711b3cc9cdc92012a.tar.gz
scummvm-rg350-4d30c6f7c91dcf7376cb8a6711b3cc9cdc92012a.tar.bz2
scummvm-rg350-4d30c6f7c91dcf7376cb8a6711b3cc9cdc92012a.zip
PSP: Adapt to setPalette/grabPalette RGBA->RGB change.
This change is not tested, but should hopefully work fine.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/psp/display_client.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/platform/psp/display_client.cpp b/backends/platform/psp/display_client.cpp
index 82e2d17d10..76b4a28e4a 100644
--- a/backends/platform/psp/display_client.cpp
+++ b/backends/platform/psp/display_client.cpp
@@ -110,7 +110,7 @@ void Palette::setPartial(const byte *colors, uint32 start, uint32 num, bool supp
for (uint32 i = 0; i < num; ++i) {
byte alphaVal = supportsAlpha ? src[3] : 0xFF;
*palette = (uint16)_pixelFormat.rgbaToColor(src[0], src[1], src[2], alphaVal);
- src += 4;
+ src += 3;
palette++;
}
} else if (_pixelFormat.bitsPerPixel == 32) {
@@ -120,7 +120,7 @@ void Palette::setPartial(const byte *colors, uint32 start, uint32 num, bool supp
for (uint32 i = 0; i < num; ++i) {
byte alphaVal = supportsAlpha ? src[3] : 0xFF;
*palette = _pixelFormat.rgbaToColor(src[0], src[1], src[2], alphaVal);
- src += 4;
+ src += 3;
palette++;
}
}
@@ -214,7 +214,6 @@ void Palette::getPartial(byte *colors, uint start, uint num) {
*colors++ = (byte)r;
*colors++ = (byte)g;
*colors++ = (byte)b;
- *colors++ = (byte)a;
palette++;
}
} else if (_pixelFormat.bitsPerPixel == 32) {
@@ -227,7 +226,6 @@ void Palette::getPartial(byte *colors, uint start, uint num) {
*colors++ = (byte)r;
*colors++ = (byte)g;
*colors++ = (byte)b;
- *colors++ = (byte)a;
palette++;
}
}