From f99b42a89da4b1f9e25aedd1ccf798085516ff92 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 31 Jul 2015 20:44:38 -0400 Subject: SHERLOCK: RT: Don't show inventory item tooltips on scrollbar --- engines/sherlock/tattoo/widget_inventory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sherlock/tattoo') 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 * -- cgit v1.2.3