Skip to content

Commit

Permalink
DM: Change Box's member fields from uint16 to int16
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent ead6337 commit d69c2d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engines/dm/gfx.h
Expand Up @@ -290,12 +290,12 @@ extern uint16 g21_PalDungeonView[6][16]; // @ G0021_aaui_Graphic562_Palette_Dung
// in all cases, where a function takes a Box, it expects it to contain inclusive boundaries
class Box {
public:
uint16 _x1;
uint16 _x2;
uint16 _y1;
uint16 _y2;
int16 _x1;
int16 _x2;
int16 _y1;
int16 _y2;

Box(uint16 x1, uint16 x2, uint16 y1, uint16 y2) : _x1(x1), _x2(x2), _y1(y1), _y2(y2) {}
Box(int16 x1, int16 x2, int16 y1, int16 y2) : _x1(x1), _x2(x2), _y1(y1), _y2(y2) {}
Box() {}
template <typename T>
explicit Box(T *ptr) {
Expand Down

0 comments on commit d69c2d1

Please sign in to comment.