ASYLUM: Correct Compilation On Newer GCC.

The abs() function returns double, but the ScummVM common/util version
should be used instead which is ABS().
This commit is contained in:
D G Turner 2018-01-18 23:17:15 +00:00 committed by Eugene Sandulenko
parent 79ef1c65dd
commit 86eee35eb4
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -940,7 +940,7 @@ void Screen::blitMasked(GraphicFrame *frame, Common::Rect *source, byte *maskDat
byte *mirroredBuffer = NULL;
int16 frameRight = frame->surface.pitch;
uint16 maskHeight = (uint16)sourceMask->height(); // for debugging only
byte zoom = abs(sourceMask->left) & 7;
byte zoom = ABS(sourceMask->left) & 7;
// Prepare temporary source buffer if needed
if (flags & kDrawFlagMirrorLeftRight) {