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