aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_v2.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-03 22:38:31 +0000
committerJohannes Schickel2008-03-03 22:38:31 +0000
commitb651a74b45f922c5d7bd8182cbe465298c8cf270 (patch)
tree5f7b95b7160b19e764aedae1d6b50ae0ca081100 /engines/kyra/screen_v2.cpp
parentbeaef7f322396e0846677c7014c91e4a9bf6ab84 (diff)
downloadscummvm-rg350-b651a74b45f922c5d7bd8182cbe465298c8cf270.tar.gz
scummvm-rg350-b651a74b45f922c5d7bd8182cbe465298c8cf270.tar.bz2
scummvm-rg350-b651a74b45f922c5d7bd8182cbe465298c8cf270.zip
Started to implement GUI code for HoF.
Currently working: - _basic_ inventory, this doesn't include scrolling through the inventory svn-id: r31038
Diffstat (limited to 'engines/kyra/screen_v2.cpp')
-rw-r--r--engines/kyra/screen_v2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/screen_v2.cpp b/engines/kyra/screen_v2.cpp
index cb3967b73a..2bec373266 100644
--- a/engines/kyra/screen_v2.cpp
+++ b/engines/kyra/screen_v2.cpp
@@ -687,6 +687,9 @@ void Screen_v2::drawShape(uint8 page, const uint8 *shape, int x, int y, int sd,
uint8 *dst = getPagePtr(page) + y * 320 + x;
uint8 *dstStart = getPagePtr(page);
+ if (page == 0 || page == 1)
+ addDirtyRect(x, y, x2-x1, y2-y1);
+ clearOverlayRect(page, x, y, x2-x1, y2-y1);
int scaleYTable[200];
for (y = y1; y < y2; ++y) {