Advertisement
Guest User

SDL_InvalidateMap

a guest
Jul 26th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. SDL_pixels.c
  2.  
  3. void
  4. SDL_InvalidateMap(SDL_BlitMap * map)
  5. {
  6.     if (!map) {
  7.         return;
  8.     }
  9.     if (map->dst) {
  10.         /* Release our reference to the surface - see the note below */
  11.         if (--map->dst->refcount <= 0) {
  12.             SDL_FreeSurface(map->dst);
  13.         }
  14.     }
  15.     map->dst = NULL;
  16.     map->src_palette_version = 0;
  17.     map->dst_palette_version = 0;
  18.     SDL_free(map->info.table);
  19.     map->info.table = NULL;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement