aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorFilippos Karapetis2013-04-12 06:43:09 +0300
committerFilippos Karapetis2013-04-12 07:19:52 +0300
commit53e82436e6d77968e1c5e1a9c5797cae16cb76a0 (patch)
tree1529e1bd8b1ff80229bd95823ac640b3f7249c73 /engines/tinsel
parenta9886f1c261281083dcaa8ecfbcec88be423961d (diff)
downloadscummvm-rg350-53e82436e6d77968e1c5e1a9c5797cae16cb76a0.tar.gz
scummvm-rg350-53e82436e6d77968e1c5e1a9c5797cae16cb76a0.tar.bz2
scummvm-rg350-53e82436e6d77968e1c5e1a9c5797cae16cb76a0.zip
TINSEL: Simplify overflow calculation inside MacDrawTiles()
Thanks to wjp for noticing this
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp
index b917775360..ef8a10221b 100644
--- a/engines/tinsel/graphics.cpp
+++ b/engines/tinsel/graphics.cpp
@@ -272,7 +272,7 @@ static void MacDrawTiles(DRAWOBJECT *pObj, uint8 *srcP, uint8 *destP, bool apply
tempDest += rptLength;
}
- int overflow = (copyBytes % 2) == 0 ? 0 : 2 - (copyBytes % 2);
+ int overflow = (copyBytes & 1);
x += runLength;
srcP += runLength + overflow;
}