Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in order)

The much more complete fix is in SDL 1.3, but this is a band-aid that will fix the bug for 1.2.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2011-02-17 02:31:50 -08:00
parent 6341d68347
commit 4d222ab45d

View File

@@ -214,7 +214,7 @@ static void SDL_BlitCopyOverlap(SDL_BlitInfo *info)
dstskip = w+info->d_skip;
if ( dst < src ) {
while ( h-- ) {
SDL_memcpy(dst, src, w);
SDL_memmove(dst, src, w);
src += srcskip;
dst += dstskip;
}