Skip to content

Commit

Permalink
Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in o…
Browse files Browse the repository at this point in the history
…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 10e9663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_blit.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 10e9663

Please sign in to comment.