From a6c476b292bab8652ff1dc748335dfc994ce529e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 6 Jun 2007 18:02:33 +0000 Subject: Added palette fading in playCutaway() svn-id: r27141 --- engines/saga/animation.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3