Skip to content
Permalink
Browse files

Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in o…

…rder)

The much more complete fix is in SDL 1.3, but this is a band-aid that will fix the bug for 1.2.
  • Loading branch information
slouken committed Feb 17, 2011
1 parent 063f928 commit 10e96637c1dd3ecd33666607d6ac8c74374fce84
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 10e9663

Please sign in to comment.