aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-10 00:00:39 -0400
committerPaul Gilbert2014-03-10 00:00:39 -0400
commit680b5a4487a6c1b08f79c4a657b63715e69240de (patch)
tree8f1d9664d890c96ea5ffea9d774d475cbbfacd0c /engines/mads/scene.cpp
parentc89193f24f252cf1a7f744f2712218b6808370fc (diff)
downloadscummvm-rg350-680b5a4487a6c1b08f79c4a657b63715e69240de.tar.gz
scummvm-rg350-680b5a4487a6c1b08f79c4a657b63715e69240de.tar.bz2
scummvm-rg350-680b5a4487a6c1b08f79c4a657b63715e69240de.zip
MADS: In progress implementation of PaletteUsage::process
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 11a59356c0..15577971e0 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -384,16 +384,15 @@ void Scene::doFrame() {
_kernelMessages.update();
}
- _vm->_game->_abortTimers2 = !_vm->_game->_abortTimers2;
-
- warning("TODO: image_inter_list_call");
+ _imageInterEntries.call(_vm->_game->_abortTimers2 == kTransitionFadeIn ? 0xff : 0,
+ _vm->_game->_abortTimers2);
// Write any text needed by the interface
if (_vm->_game->_abortTimers2)
_interface.writeText();
// Draw any elements
- drawElements(_vm->_game->_abortTimers2, _vm->_game->_abortTimers2);
+ drawElements((ScreenTransition)_vm->_game->_abortTimers2, _vm->_game->_abortTimers2);
// Handle message updates
if (_vm->_game->_abortTimers2) {
@@ -425,7 +424,7 @@ void Scene::doFrame() {
_vm->_events->waitForNextFrame();
}
-void Scene::drawElements(bool transitionFlag, bool surfaceFlag) {
+void Scene::drawElements(ScreenTransition transitionType, bool surfaceFlag) {
// Draw any sprites
_spriteSlots.drawBackground();
@@ -455,9 +454,9 @@ void Scene::drawElements(bool transitionFlag, bool surfaceFlag) {
_interface.setBounds(Common::Rect(_vm->_screen._offset.x, _vm->_screen._offset.y,
_vm->_screen._offset.x + _vm->_screen.w, _vm->_screen._offset.y + _vm->_screen.h));
- if (transitionFlag) {
+ if (transitionType) {
// Fading in the screen
- _vm->_screen.transition(transitionFlag, surfaceFlag);
+ _vm->_screen.transition(transitionType, surfaceFlag);
_vm->_sound->startQueuedCommands();
} else {
// Copy dirty areas to the screen