SDL/src/stdlib
Sam Lantinga b5513f44c8 Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in order)
Even if we're blitting between two different surfaces their pixels might still overlap, because of SDL_CreateRGBSurfaceFrom(), so always use SDL_BlitCopy() and check for overlap in that function.

When handling overlapping surfaces, don't assume that memcpy() iterates forward, instead use memmove() correctly, and provide a fallback implementation of SDL_memmove() that handles the different cases.

Fixed a bug with SDL_memset() not completely filling lengths that aren't a multiple of 4.
Optimized SDL_memcpy() a bit using the same technique as SDL_memset().
2011-02-16 15:25:10 -08:00
..
SDL_getenv.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_iconv.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_malloc.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_qsort.c Merged r4710:4711 from branches/SDL-1.2: Mac OS X SDL_stdlib qsort build fixes. 2010-01-06 20:17:35 +00:00
SDL_stdlib.c Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_string.c Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in order) 2011-02-16 15:25:10 -08:00