mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
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:
parent
f2dff4dec6
commit
8ba3553722
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user