From a431bec1d828d0f5ec054af5aac939b3c7385407 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 3 May 2006 04:39:31 +0000 Subject: Read correct offset in loadIconData() svn-id: r22291 --- engines/simon/icons.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'engines') diff --git a/engines/simon/icons.cpp b/engines/simon/icons.cpp index 887bc35bbb..7c34578066 100644 --- a/engines/simon/icons.cpp +++ b/engines/simon/icons.cpp @@ -50,12 +50,7 @@ void SimonEngine::loadIconData() { loadZone(8); VgaPointersEntry *vpe = &_vgaBufferPointers[8]; - // FIXME: For reasons unknown, the first 16 bytes are not part of the - // actual image data. This could be an indication of some deeper - // problem elsewhere. For now, adding 16 fixes the drawing of the - // Oracle icon. - - byte *src = vpe->vgaFile2 + 16; + byte *src = vpe->vgaFile2 + READ_LE_UINT32(vpe->vgaFile2 + 8); _iconFilePtr = (byte *)malloc(43 * 336); if (_iconFilePtr == NULL) -- cgit v1.2.3