aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2011-05-12 13:00:46 -0400
committerMatthew Hoops2011-05-12 13:00:46 -0400
commit6b8a6f486cd1235009cfb354e407878d3b2b77e9 (patch)
treeaf6e27bf8305b1d8be7592715b0eed98631cf053 /engines/pegasus
parent5a86c56b8ccefcbb3111148f93ab774bc0e13372 (diff)
downloadscummvm-rg350-6b8a6f486cd1235009cfb354e407878d3b2b77e9.tar.gz
scummvm-rg350-6b8a6f486cd1235009cfb354e407878d3b2b77e9.tar.bz2
scummvm-rg350-6b8a6f486cd1235009cfb354e407878d3b2b77e9.zip
PEGASUS: Finish hotspot outline code in the overview
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/overview.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/pegasus/overview.cpp b/engines/pegasus/overview.cpp
index 5772707acd..adbfbdbbe8 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();
}
}