aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 036b8b9bc2..b742758391 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -3276,9 +3276,9 @@ void Palette::loadAmigaPalette(Common::ReadStream &stream, int colors) {
for (int i = 0; i < colors; ++i) {
uint16 col = stream.readUint16BE();
- _palData[i * 3 + 2] = (col & 0xF) << 2; col >>= 4;
- _palData[i * 3 + 1] = (col & 0xF) << 2; col >>= 4;
- _palData[i * 3 + 0] = (col & 0xF) << 2; col >>= 4;
+ _palData[i * 3 + 2] = ((col & 0xF) * 0xFF) / 0x3F; col >>= 4;
+ _palData[i * 3 + 1] = ((col & 0xF) * 0xFF) / 0x3F; col >>= 4;
+ _palData[i * 3 + 0] = ((col & 0xF) * 0xFF) / 0x3F; col >>= 4;
}
memset(_palData + colors * 3, 0, (_numColors - colors) * 3);