comparison src/video/SDL_blit.c @ 2805:2ed5ff5373d8

Preserve the desire for RLE acceleration
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Nov 2008 10:43:50 +0000
parents 5eb95b8adc1a
children 4dba7aa7ea77
comparison
equal deleted inserted replaced
2804:7af8c4ad427e 2805:2ed5ff5373d8
226 map->info.src_pitch = surface->pitch; 226 map->info.src_pitch = surface->pitch;
227 map->info.dst_fmt = dst->format; 227 map->info.dst_fmt = dst->format;
228 map->info.dst_pitch = dst->pitch; 228 map->info.dst_pitch = dst->pitch;
229 229
230 /* See if we can do RLE acceleration */ 230 /* See if we can do RLE acceleration */
231 if (surface->map->info.flags & SDL_COPY_RLE_DESIRED) { 231 if (map->info.flags & SDL_COPY_RLE_DESIRED) {
232 if (SDL_RLESurface(surface) == 0) { 232 if (SDL_RLESurface(surface) == 0) {
233 surface->map->info.flags &= ~SDL_COPY_RLE_DESIRED;
234 return 0; 233 return 0;
235 } 234 }
236 } 235 }
237 236
238 /* Choose a standard blit function */ 237 /* Choose a standard blit function */