Fix icons regression in Amiga OCS version of Simon the Sorcerer 1.

svn-id: r25512
This commit is contained in:
Travis Howell 2007-02-12 06:17:13 +00:00
parent 3c1ede0520
commit 0a8a92fd5c

View File

@ -193,7 +193,8 @@ void AGOSEngine::drawIcon(WindowBlock *window, uint icon, uint x, uint y) {
if (getPlatform() == Common::kPlatformAmiga) { if (getPlatform() == Common::kPlatformAmiga) {
src = _iconFilePtr; src = _iconFilePtr;
src += READ_BE_UINT32(&((uint32 *)src)[icon]); src += READ_BE_UINT32(&((uint32 *)src)[icon]);
decompressIconAmiga(dst, src, 24, 24, 240, _dxSurfacePitch); uint8 color = (getFeatures() & GF_32COLOR) ? 16 : 240;
decompressIconAmiga(dst, src, 24, 24, color, _dxSurfacePitch);
} else { } else {
src = _iconFilePtr; src = _iconFilePtr;
src += READ_LE_UINT16(&((uint16 *)src)[icon]); src += READ_LE_UINT16(&((uint16 *)src)[icon]);
@ -203,7 +204,7 @@ void AGOSEngine::drawIcon(WindowBlock *window, uint icon, uint x, uint y) {
dst += (x + window->x) * 8; dst += (x + window->x) * 8;
dst += (y * 20 + window->y) * _dxSurfacePitch; dst += (y * 20 + window->y) * _dxSurfacePitch;
uint color = dst[0] & 0xF0; uint8 color = dst[0] & 0xF0;
if (getPlatform() == Common::kPlatformAmiga) { if (getPlatform() == Common::kPlatformAmiga) {
src = _iconFilePtr; src = _iconFilePtr;