Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Preserve the desire for RLE acceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 29, 2008
1 parent 254b6bf commit 9a720fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/SDL_blit.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 9a720fc

Please sign in to comment.