aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kpathing.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-04 20:18:01 +0000
committerMartin Kiewitz2010-02-04 20:18:01 +0000
commite74bd30a2e249598b6ec8ec1cb6c03fd95797ddc (patch)
treeb780c7c514d0203b2428a5cb3774d72a265ad72a /engines/sci/engine/kpathing.cpp
parent822e59288f34c03e468de2111d40467e419194c4 (diff)
downloadscummvm-rg350-e74bd30a2e249598b6ec8ec1cb6c03fd95797ddc.tar.gz
scummvm-rg350-e74bd30a2e249598b6ec8ec1cb6c03fd95797ddc.tar.bz2
scummvm-rg350-e74bd30a2e249598b6ec8ec1cb6c03fd95797ddc.zip
SCI: putting most kGraph functions into GfxPaint16
svn-id: r47887
Diffstat (limited to 'engines/sci/engine/kpathing.cpp')
-rw-r--r--engines/sci/engine/kpathing.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index 86a0a67918..7797ead3e6 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -27,7 +27,7 @@
#include "sci/engine/state.h"
#include "sci/engine/selector.h"
#include "sci/engine/kernel.h"
-#include "sci/graphics/gui.h"
+#include "sci/graphics/paint16.h"
#include "sci/graphics/palette.h"
#include "common/list.h"
@@ -307,7 +307,7 @@ static void draw_line(EngineState *s, Common::Point p1, Common::Point p2, int ty
p2.y = CLIP<int16>(p2.y, 0, height - 1);
assert(type >= 0 && type <= 3);
- s->_gui->graphDrawLine(p1, p2, poly_colors[type], 255, 255);
+ s->_gfxPaint16->kernelGraphDrawLine(p1, p2, poly_colors[type], 255, 255);
}
static void draw_point(EngineState *s, Common::Point p, int start, int width, int height) {
@@ -328,7 +328,7 @@ static void draw_point(EngineState *s, Common::Point p, int start, int width, in
rect.right = CLIP<int16>(rect.right, 0, width - 1);
assert(start >= 0 && start <= 1);
- s->_gui->graphFrameBox(rect, point_colors[start]);
+ s->_gfxPaint16->kernelGraphFrameBox(rect, point_colors[start]);
}
static void draw_polygon(EngineState *s, reg_t polygon, int width, int height) {
@@ -1417,7 +1417,7 @@ reg_t kAvoidPath(EngineState *s, int argc, reg_t *argv) {
}
// Update the whole screen
- s->_gui->graphUpdateBox(Common::Rect(0, 0, width - 1, height - 1), width > 320);
+ s->_gfxPaint16->kernelGraphUpdateBox(Common::Rect(0, 0, width - 1, height - 1), width > 320);
}
PathfindingState *p = convert_polygon_set(s, poly_list, start, end, width, height, opt);