Preserve the desire for RLE acceleration

This commit is contained in:
Sam Lantinga
2008-11-29 10:43:50 +00:00
parent 09a0bb1e39
commit 48b5552ec0

View File

@@ -228,9 +228,8 @@ SDL_CalculateBlit(SDL_Surface * surface)
map->info.dst_pitch = dst->pitch;
/* See if we can do RLE acceleration */
if (surface->map->info.flags & SDL_COPY_RLE_DESIRED) {
if (map->info.flags & SDL_COPY_RLE_DESIRED) {
if (SDL_RLESurface(surface) == 0) {
surface->map->info.flags &= ~SDL_COPY_RLE_DESIRED;
return 0;
}
}