From 86eee35eb4c1183a57f469d97fd58ea12dc2f84e Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 18 Jan 2018 23:17:15 +0000 Subject: [PATCH] ASYLUM: Correct Compilation On Newer GCC. The abs() function returns double, but the ScummVM common/util version should be used instead which is ABS(). --- engines/asylum/system/screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/asylum/system/screen.cpp b/engines/asylum/system/screen.cpp index 16983da6cea..3a6328857a3 100644 --- a/engines/asylum/system/screen.cpp +++ b/engines/asylum/system/screen.cpp @@ -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) {