mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Fix icons regression in Amiga OCS version of Simon the Sorcerer 1.
svn-id: r25512
This commit is contained in:
parent
3c1ede0520
commit
0a8a92fd5c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user