src/video/SDL_blit_0.c
changeset 1058 e6c91fd1911e
parent 1057 e9d23bb80140
child 1312 c9b51268668f
equal deleted inserted replaced
1057:e9d23bb80140 1058:e6c91fd1911e
   450 
   450 
   451 SDL_loblit SDL_CalculateBlit0(SDL_Surface *surface, int blit_index)
   451 SDL_loblit SDL_CalculateBlit0(SDL_Surface *surface, int blit_index)
   452 {
   452 {
   453 	int which;
   453 	int which;
   454 
   454 
   455 	if ( surface->format->BitsPerPixel > 1 ) {
   455 	if ( surface->format->BitsPerPixel != 1 ) {
   456 		/* We don't support sub 8-bit packed pixel modes */
   456 		/* We don't support sub 8-bit packed pixel modes */
   457 		return NULL;
   457 		return NULL;
   458 	}
   458 	}
   459 	if ( surface->map->dst->format->BitsPerPixel < 8 ) {
   459 	if ( surface->map->dst->format->BitsPerPixel < 8 ) {
   460 		which = 0;
   460 		which = 0;