From 8ba35537223eecc128c3ec0fca725680674aa510 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 12 Feb 2007 01:07:27 +0000 Subject: Add Quietust's changes to fix image glitches in Amiga AGA/CD32 versions of Simon the Sorcerer 1. svn-id: r25504 --- engines/agos/res_ami.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'engines/agos/res_ami.cpp') diff --git a/engines/agos/res_ami.cpp b/engines/agos/res_ami.cpp index 08a5db5726..7024726e2b 100644 --- a/engines/agos/res_ami.cpp +++ b/engines/agos/res_ami.cpp @@ -129,10 +129,18 @@ byte *AGOSEngine::convertclip(const byte *src, bool is32Colors, uint height, uin length = (width + 15) / 16 * height; for (i = 0; i < length; i++) { uint16 w[kMaxColorDepth]; - for (j = 0; j < colorDepth; ++j) { - w[j] = READ_BE_UINT16(src); src += 2; + if (getGameType() == GType_SIMON1 && !is32Colors) { + for (j = 0; j < colorDepth; ++j) { + w[j] = READ_BE_UINT16(src + j * length * 2); + } + bitplanetochunky(w, colorDepth, dst); + src += 2; + } else { + for (j = 0; j < colorDepth; ++j) { + w[j] = READ_BE_UINT16(src); src += 2; + } + bitplanetochunky(w, colorDepth, dst); } - bitplanetochunky(w, colorDepth, dst); } } -- cgit v1.2.3