aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/graphics.h
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.h
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.h')
-rw-r--r--engines/mohawk/graphics.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/mohawk/graphics.h b/engines/mohawk/graphics.h
index 1f184b30d0..75ffe12987 100644
--- a/engines/mohawk/graphics.h
+++ b/engines/mohawk/graphics.h
@@ -41,6 +41,12 @@ class MohawkEngine_Riven;
class MohawkBitmap;
class MystBitmap;
+enum RectState{
+ kRectEnabled,
+ kRectDisabled,
+ kRectUnreachable
+};
+
class MohawkSurface {
public:
MohawkSurface();
@@ -99,8 +105,7 @@ public:
void copyImageSectionToScreen(uint16 image, Common::Rect src, Common::Rect dest);
void copyImageToScreen(uint16 image, Common::Rect dest);
void updateScreen();
-
- void drawRect(Common::Rect rect, bool active);
+ void drawRect(Common::Rect rect, RectState state);
protected:
MohawkSurface *decodeImage(uint16 id);