From 86b63e0e4edb301d8f448b7bc71274e125de7a83 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 25 Jun 2009 02:39:23 +0000 Subject: Implement proper AMIGA to VGA color conversion. svn-id: r41852 --- engines/kyra/screen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/kyra/screen.cpp') 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); -- cgit v1.2.3