aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/sprite_he.cpp
diff options
context:
space:
mode:
authorLars Persson2006-03-02 12:09:19 +0000
committerLars Persson2006-03-02 12:09:19 +0000
commitf00809788b7c261598a1d1a2a0952256217fe456 (patch)
tree540180c6f0bcfe680577afcb7810c89edea43837 /engines/scumm/he/sprite_he.cpp
parentdad7ee3e2ff5112112757074ac99ec14f2be0d5d (diff)
downloadscummvm-rg350-f00809788b7c261598a1d1a2a0952256217fe456.tar.gz
scummvm-rg350-f00809788b7c261598a1d1a2a0952256217fe456.tar.bz2
scummvm-rg350-f00809788b7c261598a1d1a2a0952256217fe456.zip
Changed cast from int to int32, to use platform specified typedefs for the type.
svn-id: r21010
Diffstat (limited to 'engines/scumm/he/sprite_he.cpp')
-rw-r--r--engines/scumm/he/sprite_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/sprite_he.cpp b/engines/scumm/he/sprite_he.cpp
index 3d4ee0dc51..8f17a89215 100644
--- a/engines/scumm/he/sprite_he.cpp
+++ b/engines/scumm/he/sprite_he.cpp
@@ -1123,10 +1123,10 @@ void Sprite::setRedrawFlags(bool checkZOrder) {
if (!(spi->flags & kSFNeedRedraw)) {
if ((!checkZOrder || spi->priority >= 0) && (spi->flags & kSFMarkDirty)) {
int32 lp = spi->bbox.left / 8;
- lp = MAX((int)0L, lp);
+ lp = MAX((int32)0, lp);
lp = MIN(lp, _vm->gdi._numStrips);
int32 rp = (spi->bbox.right + 7) / 8;
- rp = MAX((int)0L, rp);
+ rp = MAX((int32)0, rp);
rp = MIN(rp, _vm->gdi._numStrips);
for (; lp < rp; lp++) {
if (vs->tdirty[lp] < vs->h && spi->bbox.bottom >= vs->tdirty[lp] && spi->bbox.top <= vs->bdirty[lp]) {