aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-03-03 22:00:16 +0100
committeruruk2014-03-03 22:00:16 +0100
commit7a7bf4f529f127d203a8c8f0be11389fa7b7eaeb (patch)
treebd807240e60188fe8cc0fea5acab560bcfcf9740
parent0dff818594a67982afbe499898a95937797c33aa (diff)
downloadscummvm-rg350-7a7bf4f529f127d203a8c8f0be11389fa7b7eaeb.tar.gz
scummvm-rg350-7a7bf4f529f127d203a8c8f0be11389fa7b7eaeb.tar.bz2
scummvm-rg350-7a7bf4f529f127d203a8c8f0be11389fa7b7eaeb.zip
AVALANCHE: Replace majorRedraw() with refreshScreen().
-rw-r--r--engines/avalanche/avalanche.h4
-rw-r--r--engines/avalanche/avalot.cpp4
-rw-r--r--engines/avalanche/menu.cpp2
-rw-r--r--engines/avalanche/parser.cpp2
4 files changed, 4 insertions, 8 deletions
diff --git a/engines/avalanche/avalanche.h b/engines/avalanche/avalanche.h
index 9d6ab1693a..ecaff26766 100644
--- a/engines/avalanche/avalanche.h
+++ b/engines/avalanche/avalanche.h
@@ -248,9 +248,9 @@ public:
void gameOver();
uint16 bearing(byte whichPed); // Returns the bearing from ped 'whichped' to Avvy, in degrees.
- // There are two kinds of redraw: Major and Minor. Minor is what happens when you load a game, etc. Major redraws EVERYTHING.
+ // There are two kinds of redraw: Major and Minor. Minor is what happens when you load a game, etc.
+ // Major was replaced with GraphicManager::refreshScreen(), it redraws EVERYTHING.
void minorRedraw();
- void majorRedraw();
void spriteRun();
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 20e16a55b1..34c5c4aa86 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -1281,10 +1281,6 @@ void AvalancheEngine::minorRedraw() {
fadeIn();
}
-void AvalancheEngine::majorRedraw() {
- _graphics->refreshScreen();
-}
-
uint16 AvalancheEngine::bearing(byte whichPed) {
AnimationType *avvy = _animation->_sprites[0];
PedType *curPed = &_peds[whichPed];
diff --git a/engines/avalanche/menu.cpp b/engines/avalanche/menu.cpp
index af3caf880e..a4cecc5da5 100644
--- a/engines/avalanche/menu.cpp
+++ b/engines/avalanche/menu.cpp
@@ -541,7 +541,7 @@ void Menu::runMenuGame() {
_vm->callVerb(kVerbCodeBoss);
break;
case 2:
- _vm->majorRedraw();
+ _vm->_graphics->refreshScreen();
break;
case 3:
_vm->callVerb(kVerbCodeScore);
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 5e58d1df5c..01067af7ca 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -468,7 +468,7 @@ void Parser::handleFunctionKey(const Common::Event &event) {
break;
case Common::KEYCODE_F7:
if (event.kbd.flags & Common::KBD_CTRL)
- _vm->majorRedraw();
+ _vm->_graphics->refreshScreen();
else
_vm->callVerb(kVerbCodeOpen);
break;