changeset 2798:5f3831f1c3ea

Fixed crash in testalpha. I think this was supposed to clear those bits. :)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 28 Nov 2008 19:59:46 +0000
parents c81150fedf6f
children bbf3aac2672a
files src/video/SDL_RLEaccel.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_RLEaccel.c	Fri Nov 28 17:44:28 2008 +0000
+++ b/src/video/SDL_RLEaccel.c	Fri Nov 28 19:59:46 2008 +0000
@@ -1962,8 +1962,7 @@
             }
         }
         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);