src/video/SDL_RLEaccel.c
changeset 2328 91e601d9df8b
parent 2267 c785543d1843
child 2669 e27bdcc80744
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         }