mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user