Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SDL_pixels.c
- void
- SDL_InvalidateMap(SDL_BlitMap * map)
- {
- if (!map) {
- return;
- }
- if (map->dst) {
- /* Release our reference to the surface - see the note below */
- if (--map->dst->refcount <= 0) {
- SDL_FreeSurface(map->dst);
- }
- }
- map->dst = NULL;
- map->src_palette_version = 0;
- map->dst_palette_version = 0;
- SDL_free(map->info.table);
- map->info.table = NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement