aboutsummaryrefslogtreecommitdiff
path: root/kyra/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2005-11-01 14:19:50 +0000
committerJohannes Schickel2005-11-01 14:19:50 +0000
commitc3ef43fd6bf00f1285c3ba067e9f686559656eac (patch)
tree43370bd4d49c684f9c431d6608514ebbd098a2c8 /kyra/screen.cpp
parente763d1e060b9652923474fad620d6672bce4d120 (diff)
downloadscummvm-rg350-c3ef43fd6bf00f1285c3ba067e9f686559656eac.tar.gz
scummvm-rg350-c3ef43fd6bf00f1285c3ba067e9f686559656eac.tar.bz2
scummvm-rg350-c3ef43fd6bf00f1285c3ba067e9f686559656eac.zip
Implemented the pathfinder and applied patch # 1342902.
Also added debug printouts to some functions. svn-id: r19386
Diffstat (limited to 'kyra/screen.cpp')
-rw-r--r--kyra/screen.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/kyra/screen.cpp b/kyra/screen.cpp
index 939f5c6360..9a7a694bb3 100644
--- a/kyra/screen.cpp
+++ b/kyra/screen.cpp
@@ -1775,4 +1775,16 @@ uint8 *Screen::getPalette(int num) {
return _palettes[num-1];
}
+byte Screen::getShapeFlag1(int x, int y) {
+ debug(9, "getShapeFlag1(%d, %d)", x, y);
+ uint8 color = _shapePages[0][y * SCREEN_W + x];
+ color &= 0x80;
+ color ^= 0x80;
+
+ if (color & 0x80) {
+ return (color << 1) + 1;
+ }
+ return (color << 1);
+}
+
} // End of namespace Kyra