From 6b8a6f486cd1235009cfb354e407878d3b2b77e9 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 12 May 2011 13:00:46 -0400 Subject: [PATCH] PEGASUS: Finish hotspot outline code in the overview --- engines/pegasus/overview.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/engines/pegasus/overview.cpp b/engines/pegasus/overview.cpp index 5772707acd63..adbfbdbbe836 100644 --- a/engines/pegasus/overview.cpp +++ b/engines/pegasus/overview.cpp @@ -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(); } }