Fixed crash in testalpha. I think this was supposed to clear those bits. :)
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Nov 2008 19:59:46 +0000
changeset 27985f3831f1c3ea
parent 2797 c81150fedf6f
child 2799 bbf3aac2672a
Fixed crash in testalpha. I think this was supposed to clear those bits. :)
src/video/SDL_RLEaccel.c
     1.1 --- a/src/video/SDL_RLEaccel.c	Fri Nov 28 17:44:28 2008 +0000
     1.2 +++ b/src/video/SDL_RLEaccel.c	Fri Nov 28 19:59:46 2008 +0000
     1.3 @@ -1962,8 +1962,7 @@
     1.4              }
     1.5          }
     1.6          surface->map->info.flags &=
     1.7 -            (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
     1.8 -        surface->map->info.flags |= SDL_COPY_RLE_DESIRED;
     1.9 +            ~(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
    1.10  
    1.11          if (surface->map->data) {
    1.12              SDL_free(surface->map->data);