aboutsummaryrefslogtreecommitdiff
path: root/sword2/console.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-02-19 14:02:16 +0000
committerTorbjörn Andersson2005-02-19 14:02:16 +0000
commit43cfe01f3d8d2307a23933920cce43740871f367 (patch)
treefe56072f944bc980981d5f0cfe1683116645d076 /sword2/console.cpp
parent0de5fa2f33147529edcf4dccd24a2750b23a2867 (diff)
downloadscummvm-rg350-43cfe01f3d8d2307a23933920cce43740871f367.tar.gz
scummvm-rg350-43cfe01f3d8d2307a23933920cce43740871f367.tar.bz2
scummvm-rg350-43cfe01f3d8d2307a23933920cce43740871f367.zip
This is the second part of the BS2 restructuring. There are two new
classes: Screen and Mouse. Screen handles most of the drawing, except the mouse cursor and in-game menus. The old Graphics class is no more. I've also fixed some "reverse stereo" regressions from the first part of the restructuring. I'm not sure what the next step will be, but hopefully it will be smaller than this one was. svn-id: r16812
Diffstat (limited to 'sword2/console.cpp')
-rw-r--r--sword2/console.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sword2/console.cpp b/sword2/console.cpp
index 4c0ab2f550..32e7d6eeb2 100644
--- a/sword2/console.cpp
+++ b/sword2/console.cpp
@@ -25,9 +25,9 @@
#include "sword2/logic.h"
#include "sword2/maketext.h"
#include "sword2/memory.h"
+#include "sword2/mouse.h"
#include "sword2/resman.h"
#include "sword2/sound.h"
-#include "sword2/driver/d_draw.h"
#include "common/debugger.cpp"
@@ -144,9 +144,9 @@ void Debugger::postEnter() {
_vm->_sound->unpauseMusic();
}
- if (_vm->_graphics) {
+ if (_vm->_mouse) {
// Restore old mouse cursor
- _vm->_graphics->drawMouse();
+ _vm->_mouse->drawMouse();
}
}
@@ -219,7 +219,7 @@ bool Debugger::Cmd_Start(int argc, const char **argv) {
}
_vm->conStart(atoi(argv[1]));
- _vm->_graphics->setPalette(187, 1, pal, RDPAL_INSTANT);
+ _vm->_screen->setPalette(187, 1, pal, RDPAL_INSTANT);
return true;
}