[Scummvm-cvs-logs] SF.net SVN: scummvm:[39554] scummvm/trunk/graphics/scaler.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri Mar 20 01:11:22 CET 2009
Revision: 39554
http://scummvm.svn.sourceforge.net/scummvm/?rev=39554&view=rev
Author: lordhoto
Date: 2009-03-20 00:11:22 +0000 (Fri, 20 Mar 2009)
Log Message:
-----------
Fix compilation on mingw64.
Modified Paths:
--------------
scummvm/trunk/graphics/scaler.cpp
Modified: scummvm/trunk/graphics/scaler.cpp
===================================================================
--- scummvm/trunk/graphics/scaler.cpp 2009-03-20 00:03:16 UTC (rev 39553)
+++ scummvm/trunk/graphics/scaler.cpp 2009-03-20 00:11:22 UTC (rev 39554)
@@ -194,7 +194,7 @@
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 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list