Skip to content

Commit

Permalink
TINSEL: Simplify overflow calculation inside MacDrawTiles()
Browse files Browse the repository at this point in the history
Thanks to wjp for noticing this
  • Loading branch information
bluegr committed Apr 12, 2013
1 parent a9886f1 commit 53e8243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/tinsel/graphics.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 53e8243

Please sign in to comment.