diff options
author | Vladimir Menshakov | 2009-11-17 22:45:41 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-17 22:45:41 +0000 |
commit | 618cade585dd5f5e260ba3c5fef46cab129cfbad (patch) | |
tree | 928a2d026cc6b64c6221750f8637abb2f01dc440 /engines/teenagent/scene.cpp | |
parent | 9013668a1648065806cdc58b30795da4d0175ae0 (diff) | |
download | scummvm-rg350-618cade585dd5f5e260ba3c5fef46cab129cfbad.tar.gz scummvm-rg350-618cade585dd5f5e260ba3c5fef46cab129cfbad.tar.bz2 scummvm-rg350-618cade585dd5f5e260ba3c5fef46cab129cfbad.zip |
added kEffect for screen shaking, fixed barman callback
svn-id: r45965
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r-- | engines/teenagent/scene.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 369a174573..4e2a9463e6 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -580,9 +580,9 @@ bool Scene::render(OSystem *system) { return true; } - if (background.pixels && debug_features.feature[DebugFeatures::kShowBack]) + if (background.pixels && debug_features.feature[DebugFeatures::kShowBack]) { system->copyRectToScreen((const byte *)background.pixels, background.pitch, 0, 0, background.w, background.h); - else + } else system->fillScreen(0); Graphics::Surface *surface = system->lockScreen(); @@ -995,11 +995,16 @@ bool Scene::processEventQueue() { current_event.clear(); break; + case SceneEvent::kEffect: + debug(0, "*stub* shaking the screen"); + current_event.clear(); + break; + case SceneEvent::kQuit: debug(0, "quit!"); _engine->quitGame(); break; - + default: error("empty/unhandler event[%d]", (int)current_event.type); } |