diff options
author | Bendegúz Nagy | 2016-06-16 23:48:18 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | bcfe176df557b78adf9181a9dfea229ff3fadfe1 (patch) | |
tree | 696be9c1bbc48f5604fa8037d067f31d2fbc39f8 /engines/dm/gfx.h | |
parent | 6b31b1bbc32ecb021de8b92a02e31621c7d8e45f (diff) | |
download | scummvm-rg350-bcfe176df557b78adf9181a9dfea229ff3fadfe1.tar.gz scummvm-rg350-bcfe176df557b78adf9181a9dfea229ff3fadfe1.tar.bz2 scummvm-rg350-bcfe176df557b78adf9181a9dfea229ff3fadfe1.zip |
DM: Add mouseclick processing
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r-- | engines/dm/gfx.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h index 9790517507..50171feaa3 100644 --- a/engines/dm/gfx.h +++ b/engines/dm/gfx.h @@ -2,6 +2,7 @@ #define GFX_H #include "common/scummsys.h" +#include "common/rect.h" #include "dm.h" namespace DM { @@ -20,6 +21,9 @@ public: uint16 Y2; Box(uint16 x1, uint16 x2, uint16 y1, uint16 y2): X1(x1), X2(x2), Y1(y1), Y2(y2) {} + bool isPointInside(Common::Point point) { + return (X1 <= point.x) && (point.x < X2) && (Y1 <= point.y) && (point.y < Y2); + } }; // @ BOX_BYTE, BOX_WORD // The frames in the original sources contain inclusive boundaries and byte widths, not pixel widths |