src/video/SDL_RLEaccel.c
changeset 2798 5f3831f1c3ea
parent 2735 204be4fc2726
child 2817 b039bfa19ccd
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         }