Skip to content

Commit

Permalink
SHERLOCK: RT: Fix map tooltip display when map is scrolled
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jul 15, 2015
1 parent 40dee7d commit 1840681
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/sherlock/tattoo/widget_base.cpp
Expand Up @@ -147,10 +147,10 @@ void WidgetBase::restrictToScreen() {
_bounds.moveTo(screen._currentScroll.x, _bounds.top);
if (_bounds.top < 0)
_bounds.moveTo(_bounds.left, 0);
if (_bounds.right > SHERLOCK_SCENE_WIDTH)
_bounds.moveTo(SHERLOCK_SCENE_WIDTH - _bounds.width(), _bounds.top);
if (_bounds.bottom > SHERLOCK_SCREEN_HEIGHT)
_bounds.moveTo(_bounds.left, SHERLOCK_SCREEN_HEIGHT - _bounds.height());
if (_bounds.right > screen._backBuffer1.w())
_bounds.moveTo(screen._backBuffer1.w() - _bounds.width(), _bounds.top);
if (_bounds.bottom > screen._backBuffer1.h())
_bounds.moveTo(_bounds.left, screen._backBuffer1.h() - _bounds.height());
}

void WidgetBase::makeInfoArea(Surface &s) {
Expand Down

0 comments on commit 1840681

Please sign in to comment.