Skip to content

Commit

Permalink
PEGASUS: Finish hotspot outline code in the overview
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed May 12, 2011
1 parent 5a86c56 commit 6b8a6f4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions engines/pegasus/overview.cpp
Expand Up @@ -122,10 +122,19 @@ void PegasusEngine::drawInterfaceOverview(const OverviewHotspot &hotspot, Video:
// had similar names...
_gfx->drawPict("Images/Interface/OVcontrollerHilite.mac", hotspot.rect.left, hotspot.rect.top, false);
} else if (hotspot.time != 1000) {
// TODO: Thicker line (=4px) with rounded edges
// Draw a yellow outline around the hotspot
Common::Rect rect = hotspot.rect;
uint32 color = _system->getScreenFormat().RGBToColor(232, 232, 0); // Yellow
Graphics::Surface *screen = _system->lockScreen();
screen->frameRect(hotspot.rect, color);
screen->frameRect(rect, color);
rect.grow(1);
screen->frameRect(rect, color);
rect.grow(1);
screen->frameRect(rect, color);
screen->hLine(rect.left + 1, rect.top - 1, rect.right - 2, color);
screen->hLine(rect.left + 1, rect.bottom, rect.right - 2, color);
screen->vLine(rect.left - 1, rect.top + 1, rect.bottom - 2, color);
screen->vLine(rect.right, rect.top + 1, rect.bottom - 2, color);
_system->unlockScreen();
}
}
Expand Down

0 comments on commit 6b8a6f4

Please sign in to comment.