aboutsummaryrefslogtreecommitdiff
path: root/sword2/router.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/router.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/router.cpp')
-rw-r--r--sword2/router.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/sword2/router.cpp b/sword2/router.cpp
index 33b342c177..ef0b81f5a6 100644
--- a/sword2/router.cpp
+++ b/sword2/router.cpp
@@ -79,7 +79,6 @@
#include "sword2/logic.h"
#include "sword2/resman.h"
#include "sword2/router.h"
-#include "sword2/driver/d_draw.h"
namespace Sword2 {
@@ -2367,7 +2366,7 @@ void Router::plotWalkGrid(void) {
// lines
for (i = 0; i < _nBars; i++)
- _vm->_graphics->drawLine(_bars[i].x1, _bars[i].y1, _bars[i].x2, _bars[i].y2, 254);
+ _vm->_screen->drawLine(_bars[i].x1, _bars[i].y1, _bars[i].x2, _bars[i].y2, 254);
// nodes
@@ -2377,8 +2376,8 @@ void Router::plotWalkGrid(void) {
}
void Router::plotCross(int16 x, int16 y, uint8 colour) {
- _vm->_graphics->drawLine(x - 1, y - 1, x + 1, y + 1, colour);
- _vm->_graphics->drawLine(x + 1, y - 1, x - 1, y + 1, colour);
+ _vm->_screen->drawLine(x - 1, y - 1, x + 1, y + 1, colour);
+ _vm->_screen->drawLine(x + 1, y - 1, x - 1, y + 1, colour);
}
void Router::loadWalkGrid(void) {