diff src/video/SDL_blit_A.c @ 2853:6258fa7cd300

Fixed picking blit function when RLE fails
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 Dec 2008 22:37:40 +0000
parents 204be4fc2726
children 99210400e8b9
line wrap: on
line diff
--- a/src/video/SDL_blit_A.c	Sun Dec 07 22:29:58 2008 +0000
+++ b/src/video/SDL_blit_A.c	Sun Dec 07 22:37:40 2008 +0000
@@ -2153,7 +2153,7 @@
     SDL_PixelFormat *sf = surface->format;
     SDL_PixelFormat *df = surface->map->dst->format;
 
-    switch (surface->map->info.flags) {
+    switch (surface->map->info.flags & ~SDL_COPY_RLE_MASK) {
     case SDL_COPY_BLEND:
         /* Per-pixel alpha blits */
         switch (df->BytesPerPixel) {