From 48b5552ec0962322c0b3a89dd85ae64abf1d240e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 29 Nov 2008 10:43:50 +0000 Subject: [PATCH] Preserve the desire for RLE acceleration --- src/video/SDL_blit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/SDL_blit.c b/src/video/SDL_blit.c index c07fed8ae..7bb0729a8 100644 --- a/src/video/SDL_blit.c +++ b/src/video/SDL_blit.c @@ -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; } }