diff options
author | Gregory Montoir | 2007-05-18 09:14:27 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-05-18 09:14:27 +0000 |
commit | e16e11fdf24678d79c4991623488c3d5c061722d (patch) | |
tree | 5adbbaa141d9f69843c80cb1a60875dcea226727 /engines/cine | |
parent | 1b3458e429035e1ca152bfddd7f7f174ae96cadd (diff) | |
download | scummvm-rg350-e16e11fdf24678d79c4991623488c3d5c061722d.tar.gz scummvm-rg350-e16e11fdf24678d79c4991623488c3d5c061722d.tar.bz2 scummvm-rg350-e16e11fdf24678d79c4991623488c3d5c061722d.zip |
added missing MIN() calls
svn-id: r26864
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index eac8d6d39a..57e58a7c1c 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -259,8 +259,8 @@ void gfxSpriteFunc2(byte *spritePtr, byte *spriteMskPtr, int16 width, int16 heig if (width <= 0) { return; } - for (j = 0; j < height; ++j) { - for (i = 0; i < width; ++i) { + for (j = 0; j < MIN(maskHeight, height); ++j) { + for (i = 0; i < MIN(maskWidth, width); ++i) { bufferMskPtr[i] |= maskPtr[i] ^ 1; } bufferMskPtr += spritePitch; |