aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_tooltip.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-08 08:35:03 -0400
committerPaul Gilbert2015-07-08 08:35:03 -0400
commit3d20072fd894dc211cf1a8223b4c8e27b0aff1c2 (patch)
treee5a0ccf91a97e6f1f10a7d6fdf2a471b283df701 /engines/sherlock/tattoo/widget_tooltip.cpp
parent08414cfaed5554796a0ea94c66f7e50a03395797 (diff)
downloadscummvm-rg350-3d20072fd894dc211cf1a8223b4c8e27b0aff1c2.tar.gz
scummvm-rg350-3d20072fd894dc211cf1a8223b4c8e27b0aff1c2.tar.bz2
scummvm-rg350-3d20072fd894dc211cf1a8223b4c8e27b0aff1c2.zip
SHERLOCK: RT: Fix display of inventory in scrolled scenes
Diffstat (limited to 'engines/sherlock/tattoo/widget_tooltip.cpp')
-rw-r--r--engines/sherlock/tattoo/widget_tooltip.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_tooltip.cpp b/engines/sherlock/tattoo/widget_tooltip.cpp
index 80ac048874..7e211bbe9f 100644
--- a/engines/sherlock/tattoo/widget_tooltip.cpp
+++ b/engines/sherlock/tattoo/widget_tooltip.cpp
@@ -44,7 +44,8 @@ void WidgetTooltipBase::draw() {
// Draw the widget directly onto the screen. Unlike other widgets, we don't draw to the back buffer,
// since nothing should be drawing on top of tooltips, so there's no need to store in the back buffer
- screen.transBlitFrom(_surface, Common::Point(_bounds.left, _bounds.top));
+ screen.transBlitFrom(_surface, Common::Point(_bounds.left - screen._currentScroll.x,
+ _bounds.top - screen._currentScroll.y));
// Store a copy of the drawn area for later erasing
_oldBounds = _bounds;