Mercurial > sdl-ios-xcode
comparison src/video/SDL_RLEaccel.c @ 2328:91e601d9df8b
re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Fri, 14 Mar 2008 18:17:49 +0000 |
parents | c785543d1843 |
children | e27bdcc80744 |
comparison
equal
deleted
inserted
replaced
2327:7b53a8401195 | 2328:91e601d9df8b |
---|---|
1971 } | 1971 } |
1972 } | 1972 } |
1973 } | 1973 } |
1974 surface->map->info.flags &= | 1974 surface->map->info.flags &= |
1975 (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY); | 1975 (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY); |
1976 surface->map->info.flags |= SDL_COPY_RLE_DESIRED; | |
1976 | 1977 |
1977 if (surface->map->data) { | 1978 if (surface->map->data) { |
1978 SDL_free(surface->map->data); | 1979 SDL_free(surface->map->data); |
1979 surface->map->data = NULL; | 1980 surface->map->data = NULL; |
1980 } | 1981 } |