[Scummvm-cvs-logs] scummvm master -> f99b42a89da4b1f9e25aedd1ccf798085516ff92

dreammaster dreammaster at scummvm.org
Sat Aug 1 02:45:40 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:
f99b42a89d SHERLOCK: RT: Don't show inventory item tooltips on scrollbar


Commit: f99b42a89da4b1f9e25aedd1ccf798085516ff92
    https://github.com/scummvm/scummvm/commit/f99b42a89da4b1f9e25aedd1ccf798085516ff92
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-07-31T20:44:38-04:00

Commit Message:
SHERLOCK: RT: Don't show inventory item tooltips on scrollbar

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 88507d8..405fc87 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 *






More information about the Scummvm-git-logs mailing list