diff options
author | Paul Gilbert | 2015-07-08 08:35:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-08 08:35:03 -0400 |
commit | 3d20072fd894dc211cf1a8223b4c8e27b0aff1c2 (patch) | |
tree | e5a0ccf91a97e6f1f10a7d6fdf2a471b283df701 /engines/sherlock/tattoo/widget_tooltip.cpp | |
parent | 08414cfaed5554796a0ea94c66f7e50a03395797 (diff) | |
download | scummvm-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.cpp | 3 |
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; |