comparison src/video/SDL_blit.c @ 2801:5eb95b8adc1a

Fixed copy blit detection
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Nov 2008 00:10:59 +0000
parents c1a390f6a819
children 2ed5ff5373d8
comparison
equal deleted inserted replaced
2800:8969da2ef606 2801:5eb95b8adc1a
234 return 0; 234 return 0;
235 } 235 }
236 } 236 }
237 237
238 /* Choose a standard blit function */ 238 /* Choose a standard blit function */
239 if (map->identity && !map->info.flags) { 239 if (map->identity && !(map->info.flags & ~SDL_COPY_RLE_DESIRED)) {
240 /* Handle overlapping blits on the same surface */ 240 /* Handle overlapping blits on the same surface */
241 if (surface == dst) { 241 if (surface == dst) {
242 blit = SDL_BlitCopyOverlap; 242 blit = SDL_BlitCopyOverlap;
243 } else { 243 } else {
244 blit = SDL_BlitCopy; 244 blit = SDL_BlitCopy;