diff options
author | Johannes Schickel | 2009-03-20 00:11:22 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-03-20 00:11:22 +0000 |
commit | d806ef27691bff4c2bf0647709b7060559fbc045 (patch) | |
tree | 534de60633fbc37e990f5b8461e60d244d9b34da | |
parent | 7b6ad08eabbae78e8148526e4c676714488a4f09 (diff) | |
download | scummvm-rg350-d806ef27691bff4c2bf0647709b7060559fbc045.tar.gz scummvm-rg350-d806ef27691bff4c2bf0647709b7060559fbc045.tar.bz2 scummvm-rg350-d806ef27691bff4c2bf0647709b7060559fbc045.zip |
Fix compilation on mingw64.
svn-id: r39554
-rw-r--r-- | graphics/scaler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp index 60070e7602..e17652efae 100644 --- a/graphics/scaler.cpp +++ b/graphics/scaler.cpp @@ -194,7 +194,7 @@ void Normal2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit int width, int height) { uint8 *r; - assert(((long)dstPtr & 3) == 0); + assert(IS_ALIGNED(dstPtr, 4)); assert(sizeof(OverlayColor) == 2); while (height--) { r = dstPtr; @@ -220,7 +220,7 @@ void Normal3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit const uint32 dstPitch2 = dstPitch * 2; const uint32 dstPitch3 = dstPitch * 3; - assert(((long)dstPtr & 1) == 0); + assert(IS_ALIGNED(dstPtr, 2)); while (height--) { r = dstPtr; for (int i = 0; i < width; ++i, r += 6) { |