aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kpathing.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-31 16:21:11 +0000
committerMartin Kiewitz2010-01-31 16:21:11 +0000
commit72c2d360f748d5c9934db2edf3c672bac7b1e165 (patch)
tree6b9582f574bf3895f7418c083ce7b94ad1eda4b5 /engines/sci/engine/kpathing.cpp
parentc991a5bcebd9c46070e41361855969bed9754e57 (diff)
downloadscummvm-rg350-72c2d360f748d5c9934db2edf3c672bac7b1e165.tar.gz
scummvm-rg350-72c2d360f748d5c9934db2edf3c672bac7b1e165.tar.bz2
scummvm-rg350-72c2d360f748d5c9934db2edf3c672bac7b1e165.zip
SCI: renamed SciPalette to GfxPalette, Screen to GfxScreen, GfxPalette is now called directly w/o SciGui
svn-id: r47752
Diffstat (limited to 'engines/sci/engine/kpathing.cpp')
-rw-r--r--engines/sci/engine/kpathing.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index 9b07a12722..301daeb240 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -28,6 +28,7 @@
#include "sci/engine/selector.h"
#include "sci/engine/kernel.h"
#include "sci/graphics/gui.h"
+#include "sci/graphics/palette.h"
#include "common/list.h"
@@ -292,10 +293,10 @@ static void draw_line(EngineState *s, Common::Point p1, Common::Point p2, int ty
// Red : Barred access
// Yellow: Contained access
int poly_colors[4] = {
- s->_gui->paletteFind(0, 255, 0), // green
- s->_gui->paletteFind(0, 0, 255), // blue
- s->_gui->paletteFind(255, 0, 0), // red
- s->_gui->paletteFind(255, 255, 0) // yellow
+ s->_gfxPalette->kernelFind(0, 255, 0), // green
+ s->_gfxPalette->kernelFind(0, 0, 255), // blue
+ s->_gfxPalette->kernelFind(255, 0, 0), // red
+ s->_gfxPalette->kernelFind(255, 255, 0) // yellow
};
// Clip
@@ -314,8 +315,8 @@ static void draw_point(EngineState *s, Common::Point p, int start, int width, in
// Green: End point
// Blue: Starting point
int point_colors[2] = {
- s->_gui->paletteFind(0, 255, 0), // green
- s->_gui->paletteFind(0, 0, 255) // blue
+ s->_gfxPalette->kernelFind(0, 255, 0), // green
+ s->_gfxPalette->kernelFind(0, 0, 255) // blue
};
Common::Rect rect = Common::Rect(p.x - 1, p.y - 1, p.x - 1 + 3, p.y - 1 + 3);