From 43cfe01f3d8d2307a23933920cce43740871f367 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 19 Feb 2005 14:02:16 +0000 Subject: 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 --- sword2/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sword2/console.cpp') 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; } -- cgit v1.2.3