diff options
author | Paul Gilbert | 2015-06-30 07:34:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-30 07:34:46 -0400 |
commit | 9ef857bc6fdad24420872aa9dab91505cb6acfbf (patch) | |
tree | edb4cd3f32c64f1e79237189fd48329ee8a17a58 | |
parent | d48ccd357db2ee49f67c6b621352077b12f5eeeb (diff) | |
download | scummvm-rg350-9ef857bc6fdad24420872aa9dab91505cb6acfbf.tar.gz scummvm-rg350-9ef857bc6fdad24420872aa9dab91505cb6acfbf.tar.bz2 scummvm-rg350-9ef857bc6fdad24420872aa9dab91505cb6acfbf.zip |
SHERLOCK: RT: Inventory tooltip now partially showing
-rw-r--r-- | engines/sherlock/tattoo/widget_inventory.cpp | 6 |
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; |