comparison src/video/SDL_blit_0.c @ 1058:e6c91fd1911e

Eh, more correct.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 May 2005 05:55:17 +0000
parents e9d23bb80140
children c9b51268668f
comparison
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;