diff options
author | Bendegúz Nagy | 2016-06-15 22:42:08 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 251768b883737a729b25b003fd531f40ccf6fe91 (patch) | |
tree | b0a5d3d0b5802bdc277de35391507e26bd1bef98 /engines/dm/gfx.h | |
parent | de3bb231d703a5f19c21e643f19506a27ab53255 (diff) | |
download | scummvm-rg350-251768b883737a729b25b003fd531f40ccf6fe91.tar.gz scummvm-rg350-251768b883737a729b25b003fd531f40ccf6fe91.tar.bz2 scummvm-rg350-251768b883737a729b25b003fd531f40ccf6fe91.zip |
DM: Add commands
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r-- | engines/dm/gfx.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h index bbd2b190a6..9790517507 100644 --- a/engines/dm/gfx.h +++ b/engines/dm/gfx.h @@ -2,7 +2,7 @@ #define GFX_H #include "common/scummsys.h" -#include "dm/dm.h" +#include "dm.h" namespace DM { @@ -12,12 +12,15 @@ extern uint16 gPalCredits[16]; extern uint16 gPalEntrance[16]; extern uint16 gPalDungeonView[6][16]; -typedef struct { +class Box { +public: uint16 X1; uint16 X2; uint16 Y1; uint16 Y2; -} Box; // @ BOX_BYTE, BOX_WORD + + Box(uint16 x1, uint16 x2, uint16 y1, uint16 y2): X1(x1), X2(x2), Y1(y1), Y2(y2) {} +}; // @ BOX_BYTE, BOX_WORD // The frames in the original sources contain inclusive boundaries and byte widths, not pixel widths struct Frame { |