diff options
-rw-r--r-- | scumm/gfx.cpp | 6 | ||||
-rw-r--r-- | scumm/scumm.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index c03b498f8d..d9f8c374de 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -802,11 +802,11 @@ void Scumm::restoreBG(int left, int top, int right, int bottom, byte backColor) } } -int Scumm::hasCharsetMask(int x, int y, int x2, int y2) { +bool Scumm::hasCharsetMask(int x, int y, int x2, int y2) { if (!_charset->_hasMask || y > gdi._mask_bottom || x > gdi._mask_right || y2 < gdi._mask_top || x2 < gdi._mask_left) - return 0; - return 1; + return false; + return true; } byte Scumm::isMaskActiveAt(int l, int t, int r, int b, byte *mem) { diff --git a/scumm/scumm.h b/scumm/scumm.h index 142c7b55a2..6cf7d75a63 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -1002,7 +1002,7 @@ public: void initCharset(int charset); void restoreCharsetBg(); - int hasCharsetMask(int x, int y, int x2, int y2); + bool hasCharsetMask(int x, int y, int x2, int y2); void CHARSET_1(); void drawDescString(byte *msg); byte *addMessageToStack(byte *msg); |