diff options
author | Adrian Frühwirth | 2018-04-21 00:57:01 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-04-21 00:57:12 +0200 |
commit | 3676c3886d9c1ee6ac95bdb312ce61a0d1af9061 (patch) | |
tree | 7bf6d33e225597284f28643a37b5ee176dd04d9a /engines/tucker/tucker.cpp | |
parent | fa1b23889a19bc6bd62dd2c9171206ce4b6135af (diff) | |
download | scummvm-rg350-3676c3886d9c1ee6ac95bdb312ce61a0d1af9061.tar.gz scummvm-rg350-3676c3886d9c1ee6ac95bdb312ce61a0d1af9061.tar.bz2 scummvm-rg350-3676c3886d9c1ee6ac95bdb312ce61a0d1af9061.zip |
TUCKER: Fix panel background being off by one pixel
This fixes an original game glitch where the main options menu background
image is drawn one pixel too high.
Fixes Trac#10496.
Diffstat (limited to 'engines/tucker/tucker.cpp')
-rw-r--r-- | engines/tucker/tucker.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index a459c345cc..3a49260ab5 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -1979,7 +1979,12 @@ void TuckerEngine::redrawPanelItems() { sz = 19200; break; case kPanelTypeLoadSavePlayQuit: - src = _panelGfxBuf + 16320; + // The following offset does not match disassembly on purpose to fix a + // "glitch" in the original game. + // This ensures that the background image ends up in the same place as + // in the case of kPanelTypeLoadSaveSavegame. + // This fixes Trac#10496. + src = _panelGfxBuf + 16000; dst = _itemsGfxBuf; sz = 19200; memcpy(dst, src, sz); |