diff 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
line wrap: on
line diff
--- 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;