Fixed copy blit detection
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Nov 2008 00:10:59 +0000
changeset 28015eb95b8adc1a
parent 2800 8969da2ef606
child 2802 c2834344ca44
Fixed copy blit detection
src/video/SDL_blit.c
     1.1 --- a/src/video/SDL_blit.c	Sat Nov 29 00:08:29 2008 +0000
     1.2 +++ b/src/video/SDL_blit.c	Sat Nov 29 00:10:59 2008 +0000
     1.3 @@ -236,7 +236,7 @@
     1.4      }
     1.5  
     1.6      /* Choose a standard blit function */
     1.7 -    if (map->identity && !map->info.flags) {
     1.8 +    if (map->identity && !(map->info.flags & ~SDL_COPY_RLE_DESIRED)) {
     1.9          /* Handle overlapping blits on the same surface */
    1.10          if (surface == dst) {
    1.11              blit = SDL_BlitCopyOverlap;