[Scummvm-cvs-logs] SF.net SVN: scummvm: [27141] scummvm/trunk/engines/saga/animation.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Jun 6 20:02:34 CEST 2007
Revision: 27141
http://scummvm.svn.sourceforge.net/scummvm/?rev=27141&view=rev
Author: thebluegr
Date: 2007-06-06 11:02:33 -0700 (Wed, 06 Jun 2007)
Log Message:
-----------
Added palette fading in playCutaway()
Modified Paths:
--------------
scummvm/trunk/engines/saga/animation.cpp
Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp 2007-06-06 16:37:10 UTC (rev 27140)
+++ scummvm/trunk/engines/saga/animation.cpp 2007-06-06 18:02:33 UTC (rev 27141)
@@ -81,7 +81,19 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list