From 4d222ab45dbcc610eaadf81a92d0aa8ea58df7a9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Feb 2011 02:31:50 -0800 Subject: [PATCH] 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 --- src/video/SDL_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_blit.c b/src/video/SDL_blit.c index 83160768b..b299ab2b6 100644 --- a/src/video/SDL_blit.c +++ b/src/video/SDL_blit.c @@ -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; }