aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/graphics.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2010-11-29 20:55:11 +0000
committerBastien Bouclet2010-11-29 20:55:11 +0000
commit92d74fa56df2583ad01616c2afa394baf2ea5a9f (patch)
treeea01085fdb3bc66ca088b73f55f7946fde11f47e /engines/mohawk/graphics.cpp
parent0ac6af59d122319715145883d986ac652f99738d (diff)
downloadscummvm-rg350-92d74fa56df2583ad01616c2afa394baf2ea5a9f.tar.gz
scummvm-rg350-92d74fa56df2583ad01616c2afa394baf2ea5a9f.tar.bz2
scummvm-rg350-92d74fa56df2583ad01616c2afa394baf2ea5a9f.zip
MOHAWK: Disabled hotspots are now unclickable areas. Display blue rects for unreachable zip destinations when drawing resource rects.
svn-id: r54615
Diffstat (limited to 'engines/mohawk/graphics.cpp')
-rw-r--r--engines/mohawk/graphics.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp
index 4170b24aad..ee1ffb26f1 100644
--- a/engines/mohawk/graphics.cpp
+++ b/engines/mohawk/graphics.cpp
@@ -287,15 +287,17 @@ void MystGraphics::updateScreen() {
}
}
-void MystGraphics::drawRect(Common::Rect rect, bool active) {
+void MystGraphics::drawRect(Common::Rect rect, RectState state) {
// Useful with debugging. Shows where hotspots are on the screen and whether or not they're active.
if (rect.left < 0 || rect.top < 0 || rect.right > 544 || rect.bottom > 333 || !rect.isValidRect() || rect.width() == 0 || rect.height() == 0)
return;
Graphics::Surface *screen = _vm->_system->lockScreen();
- if (active)
+ if (state == kRectEnabled)
screen->frameRect(rect, _pixelFormat.RGBToColor(0, 255, 0));
+ else if (state == kRectUnreachable)
+ screen->frameRect(rect, _pixelFormat.RGBToColor(0, 0, 255));
else
screen->frameRect(rect, _pixelFormat.RGBToColor(255, 0, 0));