Mercurial > sdl-ios-xcode
comparison src/video/SDL_blit_N.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 |
---|---|
2428 /* We don't support destinations less than 8-bits */ | 2428 /* We don't support destinations less than 8-bits */ |
2429 if (dstfmt->BitsPerPixel < 8) { | 2429 if (dstfmt->BitsPerPixel < 8) { |
2430 return (NULL); | 2430 return (NULL); |
2431 } | 2431 } |
2432 | 2432 |
2433 switch (surface->map->info.flags) { | 2433 switch (surface->map->info.flags & ~SDL_COPY_RLE_MASK) { |
2434 case 0: | 2434 case 0: |
2435 blitfun = NULL; | 2435 blitfun = NULL; |
2436 if (dstfmt->BitsPerPixel == 8) { | 2436 if (dstfmt->BitsPerPixel == 8) { |
2437 /* We assume 8-bit destinations are palettized */ | 2437 /* We assume 8-bit destinations are palettized */ |
2438 if ((srcfmt->BytesPerPixel == 4) && | 2438 if ((srcfmt->BytesPerPixel == 4) && |