mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-15 14:28:28 +00:00
MADS: Fix palette for display of intro animation
This commit is contained in:
parent
1c9752cb02
commit
c584515b24
@ -877,10 +877,11 @@ void AnimationView::doFrame() {
|
|||||||
|
|
||||||
void AnimationView::loadNextResource() {
|
void AnimationView::loadNextResource() {
|
||||||
Scene &scene = _vm->_game->_scene;
|
Scene &scene = _vm->_game->_scene;
|
||||||
|
Palette &palette = *_vm->_palette;
|
||||||
ResourceEntry &resEntry = _resources[_resourceIndex];
|
ResourceEntry &resEntry = _resources[_resourceIndex];
|
||||||
|
|
||||||
if (resEntry._bgFlag)
|
if (resEntry._bgFlag)
|
||||||
_vm->_palette->resetGamePalette(1, 8);
|
palette.resetGamePalette(1, 8);
|
||||||
|
|
||||||
// Load the new animation
|
// Load the new animation
|
||||||
delete _currentAnimation;
|
delete _currentAnimation;
|
||||||
@ -891,6 +892,7 @@ void AnimationView::loadNextResource() {
|
|||||||
|
|
||||||
// Signal for a screen refresh
|
// Signal for a screen refresh
|
||||||
scene._spriteSlots.fullRefresh();
|
scene._spriteSlots.fullRefresh();
|
||||||
|
palette.setFullPalette(palette._mainPalette);
|
||||||
|
|
||||||
// If a sound driver has been specified, then load the correct one
|
// If a sound driver has been specified, then load the correct one
|
||||||
if (!_currentAnimation->_header._soundName.empty()) {
|
if (!_currentAnimation->_header._soundName.empty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user