mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 18:02:05 +00:00
Make alignment fans (PPC + EVC) happy
svn-id: r5578
This commit is contained in:
parent
0dd1d126f5
commit
0f6cdd9a2b
@ -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 ++;
|
||||
|
Loading…
Reference in New Issue
Block a user