comparison src/video/SDL_blit_0.c @ 2853:6258fa7cd300

Fixed picking blit function when RLE fails
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 Dec 2008 22:37:40 +0000
parents 204be4fc2726
children 99210400e8b9
comparison
equal deleted inserted replaced
2852:7046f9567045 2853:6258fa7cd300
463 if (surface->map->dst->format->BitsPerPixel < 8) { 463 if (surface->map->dst->format->BitsPerPixel < 8) {
464 which = 0; 464 which = 0;
465 } else { 465 } else {
466 which = surface->map->dst->format->BytesPerPixel; 466 which = surface->map->dst->format->BytesPerPixel;
467 } 467 }
468 switch (surface->map->info.flags) { 468 switch (surface->map->info.flags & ~SDL_COPY_RLE_MASK) {
469 case 0: 469 case 0:
470 return bitmap_blit[which]; 470 return bitmap_blit[which];
471 471
472 case SDL_COPY_COLORKEY: 472 case SDL_COPY_COLORKEY:
473 return colorkey_blit[which]; 473 return colorkey_blit[which];