Fixed bug #451
authorSam Lantinga <slouken@libsdl.org>
Sun, 08 Jul 2007 14:24:55 +0000
changeset 215775a6c5deba84
parent 2156 cd041eb7eb4a
child 2158 eff395617ed8
Fixed bug #451

SDL_memset4 copies a 32-bit value, not an 8-bit value.
include/SDL_stdinc.h
     1.1 --- a/include/SDL_stdinc.h	Sun Jul 08 05:58:51 2007 +0000
     1.2 +++ b/include/SDL_stdinc.h	Sun Jul 08 14:24:55 2007 +0000
     1.3 @@ -279,10 +279,7 @@
     1.4  #define SDL_zero(x)	SDL_memset(&(x), 0, sizeof((x)))
     1.5  #define SDL_zerop(x)	SDL_memset((x), 0, sizeof(*(x)))
     1.6  
     1.7 -/* We can count on memset existing on Mac OS X and being well-tuned. */
     1.8 -#if defined(__MACH__) && defined(__APPLE__)
     1.9 -#define SDL_memset4(dst, val, len) memset(dst, val, (len)*4)
    1.10 -#elif defined(__GNUC__) && defined(i386)
    1.11 +#if defined(__GNUC__) && defined(i386)
    1.12  #define SDL_memset4(dst, val, len)				\
    1.13  do {								\
    1.14  	int u0, u1, u2;						\