src/SDL12_compat.c
changeset 114 f4f3bf9e36e1
parent 113 ed19faa58a82
child 115 ea2ce36617d5
equal deleted inserted replaced
113:ed19faa58a82 114:f4f3bf9e36e1
  2317 }
  2317 }
  2318 
  2318 
  2319 DECLSPEC void SDLCALL
  2319 DECLSPEC void SDLCALL
  2320 SDL_FreeSurface(SDL12_Surface *surface12)
  2320 SDL_FreeSurface(SDL12_Surface *surface12)
  2321 {
  2321 {
  2322     if (surface12) {
  2322     if (surface12 && (surface12 != VideoSurface12)) {
  2323         SDL20_FreeSurface(surface12->surface20);
  2323         SDL20_FreeSurface(surface12->surface20);
  2324         if (surface12->format) {
  2324         if (surface12->format) {
  2325             SDL20_free(surface12->format->palette);
  2325             SDL20_free(surface12->format->palette);
  2326             SDL20_free(surface12->format);
  2326             SDL20_free(surface12->format);
  2327         }
  2327         }