Make alignment fans (PPC + EVC) happy

svn-id: r5578
This commit is contained in:
Nicolas Bacca 2002-11-16 00:09:56 +00:00
parent 0dd1d126f5
commit 0f6cdd9a2b

View File

@ -203,13 +203,29 @@ void Blitter::putBlock(Chunk & src) {
void Blitter::blockCopy(int32 offset) {
if(_cur.getX() + 3 < _src.right() && _cur.getY() + 3 < _src.bottom()) {// This is clipping
byte * dst = _offset;
#ifndef _WIN32_WCE
*((uint32 *)dst) = *((uint32 *)(dst + offset));
#else
memcpy(dst, dst + offset, sizeof(uint32));
#endif
dst += _clip.getX();
#ifndef _WIN32_WCE
*((uint32 *)dst) = *((uint32 *)(dst + offset));
#else
memcpy(dst, dst + offset, sizeof(uint32));
#endif
dst += _clip.getX();
#ifndef _WIN32_WCE
*((uint32 *)dst) = *((uint32 *)(dst + offset));
#else
memcpy(dst, dst + offset, sizeof(uint32));
#endif
dst += _clip.getX();
#ifndef _WIN32_WCE
*((uint32 *)dst) = *((uint32 *)(dst + offset));
#else
memcpy(dst, dst + offset, sizeof(uint32));
#endif
#ifdef DEBUG_CLIPPER
} else {
_clippedBlock ++;