Add Quietust's changes to fix image glitches in Amiga AGA/CD32 versions of Simon the Sorcerer 1.

svn-id: r25504
This commit is contained in:
Travis Howell 2007-02-12 01:07:27 +00:00
parent f2dff4dec6
commit 8ba3553722

View File

@ -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);
}
}