aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/animseq.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2007-08-25 06:06:18 +0000
committerPaul Gilbert2007-08-25 06:06:18 +0000
commit5fd1bf64f24ead49799627b39e305a684f738e9c (patch)
tree6e5bde18fcc18314bba0b322ffa8ec9e984bb2d8 /engines/lure/animseq.cpp
parent234c2a5770a78e5044b8fe2fb86d42fe0dee3c83 (diff)
downloadscummvm-rg350-5fd1bf64f24ead49799627b39e305a684f738e9c.tar.gz
scummvm-rg350-5fd1bf64f24ead49799627b39e305a684f738e9c.tar.bz2
scummvm-rg350-5fd1bf64f24ead49799627b39e305a684f738e9c.zip
Bugfix to prevent animations nuking the GUI element palette entries
svn-id: r28713
Diffstat (limited to 'engines/lure/animseq.cpp')
-rw-r--r--engines/lure/animseq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/animseq.cpp b/engines/lure/animseq.cpp
index 39d74e5ec8..f3c8a6b3b4 100644
--- a/engines/lure/animseq.cpp
+++ b/engines/lure/animseq.cpp
@@ -104,14 +104,14 @@ AnimationSequence::AnimationSequence(Screen &screen, OSystem &system, uint16 scr
_lineRefs = d.getEntry(_screenId + 1);
- // Show the screen that preceeds the start of the animation data
- _screen.setPaletteEmpty();
+ // Reset the palette and set the initial starting screen
+ _screen.setPaletteEmpty(RES_PALETTE_ENTRIES);
_screen.screen().data().copyFrom(_decodedData, 0, 0, FULL_SCREEN_HEIGHT * FULL_SCREEN_WIDTH);
_screen.update();
// Set the palette
if (fadeIn) _screen.paletteFadeIn(&_palette);
- else _screen.setPalette(&_palette);
+ else _screen.setPalette(&_palette, 0, _palette.numEntries());
// Set up frame poitners
_pPixels = _decodedData->data() + SCREEN_SIZE;