aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-14 10:48:03 +0000
committerTorbjörn Andersson2006-05-14 10:48:03 +0000
commit536beaf286e5acde4fa1c2d44776a32932af4da6 (patch)
tree7c312d10722218b1b7b890b95b5a8149ff87aa17 /engines
parent16b7c74cc4fa4b36102b0d2e0195ee48e740cdae (diff)
downloadscummvm-rg350-536beaf286e5acde4fa1c2d44776a32932af4da6.tar.gz
scummvm-rg350-536beaf286e5acde4fa1c2d44776a32932af4da6.tar.bz2
scummvm-rg350-536beaf286e5acde4fa1c2d44776a32932af4da6.zip
Fixed regression in Maniac/Zak inventory drawing.
svn-id: r22469
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/verbs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/scumm/verbs.cpp b/engines/scumm/verbs.cpp
index 2550a3665b..669e2f26cb 100644
--- a/engines/scumm/verbs.cpp
+++ b/engines/scumm/verbs.cpp
@@ -379,7 +379,7 @@ void ScummEngine_v2::redrawV2Inventory() {
_string[1].ypos = _mouseOverBoxesV2[i].rect.top + vs->topline;
_string[1].xpos = _mouseOverBoxesV2[i].rect.left;
-
+ _string[1].right = _mouseOverBoxesV2[i].rect.right - 1;
_string[1].color = _mouseOverBoxesV2[i].color;
const byte *tmp = getObjOrActorName(obj);
@@ -399,6 +399,7 @@ void ScummEngine_v2::redrawV2Inventory() {
if (_inventoryOffset > 0) {
_string[1].xpos = _mouseOverBoxesV2[kInventoryUpArrow].rect.left;
_string[1].ypos = _mouseOverBoxesV2[kInventoryUpArrow].rect.top + vs->topline;
+ _string[1].right = _mouseOverBoxesV2[kInventoryUpArrow].rect.right - 1;
_string[1].color = _mouseOverBoxesV2[kInventoryUpArrow].color;
if (_game.platform == Common::kPlatformNES)
drawString(1, (const byte *)"\x7E");
@@ -410,6 +411,7 @@ void ScummEngine_v2::redrawV2Inventory() {
if (_inventoryOffset + 4 < getInventoryCount(_scummVars[VAR_EGO])) {
_string[1].xpos = _mouseOverBoxesV2[kInventoryDownArrow].rect.left;
_string[1].ypos = _mouseOverBoxesV2[kInventoryDownArrow].rect.top + vs->topline;
+ _string[1].right = _mouseOverBoxesV2[kInventoryDownArrow].rect.right - 1;
_string[1].color = _mouseOverBoxesV2[kInventoryDownArrow].color;
if (_game.platform == Common::kPlatformNES)
drawString(1, (const byte *)"\x7F");