aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/graphics.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-10-02 20:52:09 -0400
committerMatthew Hoops2011-10-02 20:52:09 -0400
commit8c7ebc803383a87cf3199b12d5b3485b2685a873 (patch)
tree6b61f6f6ad1246f47e07631281b4932aa0bab0b1 /engines/pegasus/graphics.cpp
parentb24081c781d66cdc496a14b6326574f75b083dc6 (diff)
downloadscummvm-rg350-8c7ebc803383a87cf3199b12d5b3485b2685a873.tar.gz
scummvm-rg350-8c7ebc803383a87cf3199b12d5b3485b2685a873.tar.bz2
scummvm-rg350-8c7ebc803383a87cf3199b12d5b3485b2685a873.zip
PEGASUS: Add the basic Caldoria neighborhood
Does not include the end-of-game timers and sequence yet. It's currently hooked up to the full game, but does not go beyond the first frame of the wake-up sequence right now.
Diffstat (limited to 'engines/pegasus/graphics.cpp')
-rw-r--r--engines/pegasus/graphics.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/pegasus/graphics.cpp b/engines/pegasus/graphics.cpp
index 8e5c86d7b5..1e529d0e07 100644
--- a/engines/pegasus/graphics.cpp
+++ b/engines/pegasus/graphics.cpp
@@ -194,11 +194,18 @@ DisplayElement *GraphicsManager::findDisplayElement(const tDisplayElementID id)
return 0;
}
-void GraphicsManager::doFadeOutSync() {
- // TODO
+void GraphicsManager::doFadeOutSync(const TimeValue, const TimeValue, uint32 color) {
+ if (color == 0)
+ color = g_system->getScreenFormat().RGBToColor(0, 0, 0);
+
+ // HACK: Until fading out is done, white-out the screen here
+ Graphics::Surface *screen = g_system->lockScreen();
+ screen->fillRect(Common::Rect(0, 0, 640, 480), color);
+ g_system->unlockScreen();
+ g_system->updateScreen();
}
-void GraphicsManager::doFadeInSync() {
+void GraphicsManager::doFadeInSync(const TimeValue, const TimeValue, uint32) {
// TODO
}