include/SDL_stdinc.h
branchSDL-1.2
changeset 4182 6512a61c2c73
parent 4159 a1b03ba2fcd0
child 4217 4c4113c2162c
     1.1 --- a/include/SDL_stdinc.h	Sun Aug 02 20:45:40 2009 +0000
     1.2 +++ b/include/SDL_stdinc.h	Fri Aug 07 10:20:40 2009 +0000
     1.3 @@ -259,6 +259,7 @@
     1.4  	unsigned _n = (_count + 3) / 4;		\
     1.5  	Uint32 *_p = (Uint32 *)(dst);		\
     1.6  	Uint32 _val = (val);			\
     1.7 +	if (len == 0) break;			\
     1.8          switch (_count % 4) {			\
     1.9          case 0: do {    *_p++ = _val;		\
    1.10          case 3:         *_p++ = _val;		\