From 039e6dc8dbb6e585684dd9cd37d8f412e0c72a53 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 10 Aug 2004 17:46:04 +0000 Subject: Relaxed the assertion for the 3x scaler a bit. Since it uses pointers to uint16, it should be enough that dstPtr is even; it doesn't have to be a multiple of four. The old assertion failed for me when I used the 3x scaler without aspect ratio correction. svn-id: r14536 --- common/scaler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/scaler.cpp b/common/scaler.cpp index 77ebdb951a..766738eeef 100644 --- a/common/scaler.cpp +++ b/common/scaler.cpp @@ -148,7 +148,7 @@ void Normal3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit const uint32 dstPitch2 = dstPitch * 2; const uint32 dstPitch3 = dstPitch * 3; - assert(((int)dstPtr & 3) == 0); + assert(((int)dstPtr & 1) == 0); while (height--) { r = dstPtr; for (int i = 0; i < width; ++i, r += 6) { -- cgit v1.2.3