src/video/SDL_RLEaccel.c
changeset 2222 926294b2bb4e
parent 1895 c121d94672cb
child 2257 340942cfda48
     1.1 --- a/src/video/SDL_RLEaccel.c	Sat Aug 11 20:46:24 2007 +0000
     1.2 +++ b/src/video/SDL_RLEaccel.c	Sat Aug 11 20:54:31 2007 +0000
     1.3 @@ -1618,7 +1618,7 @@
     1.4  #undef ADD_TRANSL_COUNTS
     1.5  
     1.6      /* Now that we have it encoded, release the original pixels */
     1.7 -    if (!(surface->flags & SDL_PREALLOC) && !(surface->flags & SDL_HWSURFACE)) {
     1.8 +    if (!(surface->flags & SDL_PREALLOC)) {
     1.9          SDL_free(surface->pixels);
    1.10          surface->pixels = NULL;
    1.11      }
    1.12 @@ -1783,7 +1783,7 @@
    1.13  #undef ADD_COUNTS
    1.14  
    1.15      /* Now that we have it encoded, release the original pixels */
    1.16 -    if (!(surface->flags & SDL_PREALLOC) && !(surface->flags & SDL_HWSURFACE)) {
    1.17 +    if (!(surface->flags & SDL_PREALLOC)) {
    1.18          SDL_free(surface->pixels);
    1.19          surface->pixels = NULL;
    1.20      }
    1.21 @@ -1934,8 +1934,7 @@
    1.22      if ((surface->flags & SDL_RLEACCEL) == SDL_RLEACCEL) {
    1.23          surface->flags &= ~SDL_RLEACCEL;
    1.24  
    1.25 -        if (recode && !(surface->flags & SDL_PREALLOC)
    1.26 -            && !(surface->flags & SDL_HWSURFACE)) {
    1.27 +        if (recode && !(surface->flags & SDL_PREALLOC)) {
    1.28              if ((surface->flags & SDL_SRCCOLORKEY) == SDL_SRCCOLORKEY) {
    1.29                  SDL_Rect full;
    1.30                  unsigned alpha_flag;