diff src/video/SDL_RLEaccel.c @ 2824:4dba7aa7ea77

Added slow but complete blit fallback Don't try to RLE encode surfaces that have alpha channel and alpha modulation Don't turn on blending when converting an RGB surface to RGBA format Do turn on blending when converting colorkey to alpha channel
author Sam Lantinga <slouken@libsdl.org>
date Tue, 02 Dec 2008 17:14:04 +0000
parents b039bfa19ccd
children 99210400e8b9
line wrap: on
line diff
--- a/src/video/SDL_RLEaccel.c	Tue Dec 02 17:10:05 2008 +0000
+++ b/src/video/SDL_RLEaccel.c	Tue Dec 02 17:14:04 2008 +0000
@@ -1819,6 +1819,7 @@
 
     /* Pass on combinations not supported */
     if ((flags & SDL_COPY_MODULATE_COLOR) ||
+        ((flags & SDL_COPY_MODULATE_ALPHA) && surface->format->Amask) ||
         (flags & (SDL_COPY_ADD | SDL_COPY_MOD)) ||
         (flags & SDL_COPY_NEAREST)) {
         return -1;