comparison src/video/SDL_RLEaccel.c @ 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 204be4fc2726
children b039bfa19ccd
comparison
equal deleted inserted replaced
2797:c81150fedf6f 2798:5f3831f1c3ea
1960 return; 1960 return;
1961 } 1961 }
1962 } 1962 }
1963 } 1963 }
1964 surface->map->info.flags &= 1964 surface->map->info.flags &=
1965 (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY); 1965 ~(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
1966 surface->map->info.flags |= SDL_COPY_RLE_DESIRED;
1967 1966
1968 if (surface->map->data) { 1967 if (surface->map->data) {
1969 SDL_free(surface->map->data); 1968 SDL_free(surface->map->data);
1970 surface->map->data = NULL; 1969 surface->map->data = NULL;
1971 } 1970 }