changeset 2801:5eb95b8adc1a

Fixed copy blit detection
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Nov 2008 00:10:59 +0000
parents 8969da2ef606
children c2834344ca44
files src/video/SDL_blit.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;