aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/help.cpp')
-rw-r--r--engines/avalanche/help.cpp30
1 files changed, 13 insertions, 17 deletions
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 5b8158e016..2314843146 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -218,34 +218,30 @@ bool Help::handleKeyboard(const Common::Event &event) {
return false;
}
-void Help::continueHelp() {
- bool close = false;
- while (!_vm->shouldQuit() && !close) {
- Common::Event event;
- _vm->getEvent(event);
- if (event.type == Common::EVENT_KEYDOWN)
- close = handleKeyboard(event);
- else if ((event.type == Common::EVENT_LBUTTONDOWN) || (event.type == Common::EVENT_LBUTTONUP) || (event.type == Common::EVENT_MOUSEMOVE))
- close = handleMouse(event);
-
- _vm->_graphics->refreshScreen();
- }
-}
-
/**
* @remarks Originally called 'boot_help'
*/
void Help::run() {
_vm->_graphics->saveScreen();
_vm->fadeOut();
- _vm->_graphics->drawFilledRectangle(Common::Rect(0, 0, 640, 200), kColorBlack); // Black out the whole screen.
+ switchPage(0);
_vm->fadeIn();
_vm->_graphics->loadMouse(kCurHelp);
- switchPage(0);
+ // Originally it was the body of 'continue_help':
+ bool close = false;
+ while (!_vm->shouldQuit() && !close) {
+ Common::Event event;
+ _vm->getEvent(event);
+ if (event.type == Common::EVENT_KEYDOWN)
+ close = handleKeyboard(event);
+ else if ((event.type == Common::EVENT_LBUTTONDOWN) || (event.type == Common::EVENT_LBUTTONUP) || (event.type == Common::EVENT_MOUSEMOVE))
+ close = handleMouse(event);
- continueHelp();
+ _vm->_graphics->refreshScreen();
+ }
+ // End of 'continue_help'.
_vm->fadeOut();
_vm->_graphics->restoreScreen();