comparison src/video/SDL_blit_1.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
530 if (dstfmt->BitsPerPixel < 8) { 530 if (dstfmt->BitsPerPixel < 8) {
531 which = 0; 531 which = 0;
532 } else { 532 } else {
533 which = dstfmt->BytesPerPixel; 533 which = dstfmt->BytesPerPixel;
534 } 534 }
535 switch (surface->map->info.flags) { 535 switch (surface->map->info.flags & ~SDL_COPY_RLE_MASK) {
536 case 0: 536 case 0:
537 return one_blit[which]; 537 return one_blit[which];
538 538
539 case SDL_COPY_COLORKEY: 539 case SDL_COPY_COLORKEY:
540 return one_blitkey[which]; 540 return one_blitkey[which];