diff options
author | Paul Gilbert | 2014-05-04 18:42:34 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-04 18:42:34 -0400 |
commit | c892d8c725ee20fa3aef4aab29cc89da734bee23 (patch) | |
tree | d9c9456743e5b941fb08c6c97a008b80196031ca /engines/mads/nebular/dialogs_nebular.cpp | |
parent | 622f6eb7275912022c161ff22d74a5f4c28b77b3 (diff) | |
download | scummvm-rg350-c892d8c725ee20fa3aef4aab29cc89da734bee23.tar.gz scummvm-rg350-c892d8c725ee20fa3aef4aab29cc89da734bee23.tar.bz2 scummvm-rg350-c892d8c725ee20fa3aef4aab29cc89da734bee23.zip |
MADS: Implemented remainder of fadeToGrey
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index 9dd20cafec..8ef64008cc 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -359,8 +359,15 @@ PictureDialog::PictureDialog(MADSEngine *vm, const Common::Point &pos, } PictureDialog::~PictureDialog() { + // Restore cycling flag Scene &scene = _vm->_game->_scene; + Palette &palette = *_vm->_palette; scene._cyclingActive = _cyclingActive; + + // Restore palette information + Common::copy(&_palette[0], &_palette[PALETTE_SIZE], &palette._mainPalette[0]); + Common::copy(&_palFlags[0], &_palFlags[PALETTE_COUNT], &palette._palFlags[0]); + palette._rgbList.copy(_rgbList); } void PictureDialog::show() { |