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

Commit

Permalink
Fixed crash in testalpha. I think this was supposed to clear those bi…
Browse files Browse the repository at this point in the history
…ts. :)
  • Loading branch information
slouken committed Nov 28, 2008
1 parent 1cdc4d5 commit aaa9ed5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/SDL_RLEaccel.c
Expand Up @@ -1962,8 +1962,7 @@ SDL_UnRLESurface(SDL_Surface * surface, int recode)
}
}
surface->map->info.flags &=
(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
surface->map->info.flags |= SDL_COPY_RLE_DESIRED;
~(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);

if (surface->map->data) {
SDL_free(surface->map->data);
Expand Down

0 comments on commit aaa9ed5

Please sign in to comment.