aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sherlock/tattoo/widget_inventory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index ed7ca8fc61..30a8c3cf10 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -91,6 +91,7 @@ void WidgetInventoryTooltip::setText(const Common::String &str) {
}
// Allocate a fresh surface for the new string
+ _bounds = Common::Rect(width, height);
_surface.create(width, height);
_surface.fill(TRANSPARENCY);
@@ -230,6 +231,11 @@ void WidgetInventoryTooltip::handleEvents() {
if (select != oldSelect || (select != -1 && _surface.empty())) {
// Set the text
setText(str);
+
+ if (_owner->_invVerbMode != 3)
+ _owner->_invSelect = select;
+ else
+ ui._oldBgFound = select;
} else if (select == -1 && oldSelect != -1) {
setText(Common::String());
return;