Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2823:15e1dd1fff78 | 2824:4dba7aa7ea77 |
---|---|
1817 return -1; | 1817 return -1; |
1818 } | 1818 } |
1819 | 1819 |
1820 /* Pass on combinations not supported */ | 1820 /* Pass on combinations not supported */ |
1821 if ((flags & SDL_COPY_MODULATE_COLOR) || | 1821 if ((flags & SDL_COPY_MODULATE_COLOR) || |
1822 ((flags & SDL_COPY_MODULATE_ALPHA) && surface->format->Amask) || | |
1822 (flags & (SDL_COPY_ADD | SDL_COPY_MOD)) || | 1823 (flags & (SDL_COPY_ADD | SDL_COPY_MOD)) || |
1823 (flags & SDL_COPY_NEAREST)) { | 1824 (flags & SDL_COPY_NEAREST)) { |
1824 return -1; | 1825 return -1; |
1825 } | 1826 } |
1826 | 1827 |