diff options
author | Torbjörn Andersson | 2006-04-04 06:25:50 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-04-04 06:25:50 +0000 |
commit | ad5cac9eb454cebc606005567178aaf11bf04cf0 (patch) | |
tree | 9ff8f81e252a7ea60913bcfe933685d8dbfc29f4 /engines | |
parent | 69d3fb7ef8ab8ea49811ce587b40780d5c912ace (diff) | |
download | scummvm-rg350-ad5cac9eb454cebc606005567178aaf11bf04cf0.tar.gz scummvm-rg350-ad5cac9eb454cebc606005567178aaf11bf04cf0.tar.bz2 scummvm-rg350-ad5cac9eb454cebc606005567178aaf11bf04cf0.zip |
Work around glitchy drawing of the Oracle icon, after discussing with Kirben.
But it's still unclear *why* the first 16 bytes should be skipped; hence the
Big Scary Comment (tm).
svn-id: r21585
Diffstat (limited to 'engines')
-rw-r--r-- | engines/simon/icons.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/simon/icons.cpp b/engines/simon/icons.cpp index c81c686c87..7ef94ca4fa 100644 --- a/engines/simon/icons.cpp +++ b/engines/simon/icons.cpp @@ -55,7 +55,13 @@ void SimonEngine::loadIconFile() { void SimonEngine::loadIconData() { loadZone(8); VgaPointersEntry *vpe = &_vgaBufferPointers[8]; - byte *src = vpe->vgaFile2; + + // 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; _iconFilePtr = (byte *)malloc(43 * 336); if (_iconFilePtr == NULL) |