# HG changeset patch # User michael # Date 1041204712 0 # Node ID 50701f34a1618cb3b4b782f864672e2b65db57b2 # Parent cf1d4f48aecf3078581ca6fede8a8483d1f5993f cleaning corners of green dirt ;) diff -r cf1d4f48aecf -r 50701f34a161 postproc/postprocess_template.c --- a/postproc/postprocess_template.c Sun Dec 29 23:10:08 2002 +0000 +++ b/postproc/postprocess_template.c Sun Dec 29 23:31:52 2002 +0000 @@ -2824,7 +2824,15 @@ dstBlock+=8; srcBlock+=8; } - memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride ); + if(width==dstStride) + memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride); + else + { + for(i=0; i= height) { uint8_t *dstBlock= &(dst[y*dstStride]); - memcpy(dstBlock, tempDst + dstStride, dstStride*(height-y) ); + if(width==dstStride) + memcpy(dstBlock, tempDst + dstStride, dstStride*(height-y)); + else + { + for(i=0; i