summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2008-11-28 19:59:46 +0000
committerSam Lantinga <slouken@libsdl.org>2008-11-28 19:59:46 +0000
commitd00a2380b8233851b278ee681783b25265ffea3b (patch)
tree8a3ef68add1c75d2e0c1d47f0226607891a00818 /src
parent6692a9cb9339f917b895452cda02a0e9edac8866 (diff)
Fixed crash in testalpha. I think this was supposed to clear those bits. :)
Diffstat (limited to 'src')
-rw-r--r--src/video/SDL_RLEaccel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video/SDL_RLEaccel.c b/src/video/SDL_RLEaccel.c
index 6b55ce87fa..a29dcf8997 100644
--- a/src/video/SDL_RLEaccel.c
+++ b/src/video/SDL_RLEaccel.c
@@ -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);