aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-31 20:44:38 -0400
committerPaul Gilbert2015-07-31 20:44:38 -0400
commitf99b42a89da4b1f9e25aedd1ccf798085516ff92 (patch)
tree16c54c79a11bde5169ddd4ab0b751ff86aa0f815 /engines/sherlock
parent90802cedbc8a75ec6c6bf297f01fb357ab5fcb03 (diff)
downloadscummvm-rg350-f99b42a89da4b1f9e25aedd1ccf798085516ff92.tar.gz
scummvm-rg350-f99b42a89da4b1f9e25aedd1ccf798085516ff92.tar.bz2
scummvm-rg350-f99b42a89da4b1f9e25aedd1ccf798085516ff92.zip
SHERLOCK: RT: Don't show inventory item tooltips on scrollbar
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/tattoo/widget_inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index 88507d8231..405fc87c6b 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -180,8 +180,8 @@ void WidgetInventoryTooltip::handleEvents() {
}
}
} else {
- Common::Rect r = _owner->_bounds;
- r.grow(-3);
+ const Common::Rect &b = _owner->_bounds;
+ Common::Rect r(b.left + 3, b.top + 3, b.right - 3 - BUTTON_SIZE, b.bottom - 3);
if (r.contains(mousePos)) {
select = (mousePos.x - r.left) / (INVENTORY_XSIZE + 3) + NUM_INVENTORY_SHOWN / 2 *