diff options
author | Travis Howell | 2007-02-12 06:17:13 +0000 |
---|---|---|
committer | Travis Howell | 2007-02-12 06:17:13 +0000 |
commit | 0a8a92fd5c8858d2a690beb868bac6121cca0b9e (patch) | |
tree | 7f723b3cf2c073f039cb37dc9dd64197cfa2b152 /engines | |
parent | 3c1ede05203087bccdd76ffc2d92a4f4809e42ce (diff) | |
download | scummvm-rg350-0a8a92fd5c8858d2a690beb868bac6121cca0b9e.tar.gz scummvm-rg350-0a8a92fd5c8858d2a690beb868bac6121cca0b9e.tar.bz2 scummvm-rg350-0a8a92fd5c8858d2a690beb868bac6121cca0b9e.zip |
Fix icons regression in Amiga OCS version of Simon the Sorcerer 1.
svn-id: r25512
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/icons.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp index 1909f5f962..4a67a914d8 100644 --- a/engines/agos/icons.cpp +++ b/engines/agos/icons.cpp @@ -193,7 +193,8 @@ void AGOSEngine::drawIcon(WindowBlock *window, uint icon, uint x, uint y) { if (getPlatform() == Common::kPlatformAmiga) { src = _iconFilePtr; 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 { src = _iconFilePtr; 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 += (y * 20 + window->y) * _dxSurfacePitch; - uint color = dst[0] & 0xF0; + uint8 color = dst[0] & 0xF0; if (getPlatform() == Common::kPlatformAmiga) { src = _iconFilePtr; |