[Scummvm-cvs-logs] scummvm master -> 9ef857bc6fdad24420872aa9dab91505cb6acfbf
dreammaster
dreammaster at scummvm.org
Tue Jun 30 13:35:50 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9ef857bc6f SHERLOCK: RT: Inventory tooltip now partially showing
Commit: 9ef857bc6fdad24420872aa9dab91505cb6acfbf
https://github.com/scummvm/scummvm/commit/9ef857bc6fdad24420872aa9dab91505cb6acfbf
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-06-30T07:34:46-04:00
Commit Message:
SHERLOCK: RT: Inventory tooltip now partially showing
Changed paths:
engines/sherlock/tattoo/widget_inventory.cpp
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index ed7ca8f..30a8c3c 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;
More information about the Scummvm-git-logs
mailing list