diff options
author | Filippos Karapetis | 2007-06-06 18:02:33 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-06-06 18:02:33 +0000 |
commit | a6c476b292bab8652ff1dc748335dfc994ce529e (patch) | |
tree | 513b09d7a4f88ef465664fab24dfcdfe8f7363fb | |
parent | a265844351bc145d2254c23e69d629a049bdafc3 (diff) | |
download | scummvm-rg350-a6c476b292bab8652ff1dc748335dfc994ce529e.tar.gz scummvm-rg350-a6c476b292bab8652ff1dc748335dfc994ce529e.tar.bz2 scummvm-rg350-a6c476b292bab8652ff1dc748335dfc994ce529e.zip |
Added palette fading in playCutaway()
svn-id: r27141
-rw-r--r-- | engines/saga/animation.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp index 3ea6b112f0..f9bfe89765 100644 --- a/engines/saga/animation.cpp +++ b/engines/saga/animation.cpp @@ -81,7 +81,19 @@ void Anim::playCutaway(int cut, bool fade) { debug(0, "playCutaway(%d, %d)", cut, fade); if (fade) { - // TODO: Fade down. Is this blocking or non-blocking? + Event event; + static PalEntry cur_pal[PAL_ENTRIES]; + + _vm->_gfx->getCurrentPal(cur_pal); + + event.type = kEvTImmediate; + event.code = kPalEvent; + event.op = kEventPalToBlack; + event.time = 0; + event.duration = kNormalFadeDuration; + event.data = cur_pal; + + _vm->_events->queue(&event); } if (!_cutawayActive) { |