aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
authorTravis Howell2003-08-24 02:27:52 +0000
committerTravis Howell2003-08-24 02:27:52 +0000
commit14e3dd96e0b0f7617f307c5abe93dd6f74ad0b3e (patch)
tree22a3533eb707243766700b7454286236eec7e422 /scumm/verbs.cpp
parent4b6800fcf9b7b4169ca1dca49b8fda94f53fba7d (diff)
downloadscummvm-rg350-14e3dd96e0b0f7617f307c5abe93dd6f74ad0b3e.tar.gz
scummvm-rg350-14e3dd96e0b0f7617f307c5abe93dd6f74ad0b3e.tar.bz2
scummvm-rg350-14e3dd96e0b0f7617f307c5abe93dd6f74ad0b3e.zip
Ooops, inventory still needs to be clear when moving through inventory.
svn-id: r9840
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r--scumm/verbs.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 4922bdc435..82cc289562 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -197,12 +197,20 @@ void Scumm::checkV2Inventory(int x, int y) {
void Scumm::redrawV2Inventory() {
int i;
int max_inv;
+ ScummVM::Rect inventoryBox;
v2_mouseover_box = -1;
if (!(_userState & 64)) // Don't draw inventory unless active
return;
+ // Clear on all invocations
+ inventoryBox.top = virtscr[2].topline + 32;
+ inventoryBox.bottom = virtscr[2].topline + virtscr[2].height;
+ inventoryBox.left = 0;
+ inventoryBox.right = virtscr[2].width;
+ restoreBG(inventoryBox);
+
_string[1].charset = 1;
max_inv = getInventoryCount(_scummVars[VAR_EGO]) - _inventoryOffset;