src/video/SDL_blit_0.c
changeset 1057 e9d23bb80140
parent 769 b8d311d90021
child 1058 e6c91fd1911e
     1.1 --- a/src/video/SDL_blit_0.c	Mon May 16 04:45:07 2005 +0000
     1.2 +++ b/src/video/SDL_blit_0.c	Mon May 16 05:34:58 2005 +0000
     1.3 @@ -452,6 +452,10 @@
     1.4  {
     1.5  	int which;
     1.6  
     1.7 +	if ( surface->format->BitsPerPixel > 1 ) {
     1.8 +		/* We don't support sub 8-bit packed pixel modes */
     1.9 +		return NULL;
    1.10 +	}
    1.11  	if ( surface->map->dst->format->BitsPerPixel < 8 ) {
    1.12  		which = 0;
    1.13  	} else {