src/video/SDL_surface.c
changeset 422 b1b9ee41be70
parent 297 f6ffac90895c
child 431 41cadcba32e8
equal deleted inserted replaced
421:195dd37b3d86 422:b1b9ee41be70
   810 	}
   810 	}
   811 	if ( surface->map != NULL ) {
   811 	if ( surface->map != NULL ) {
   812 		SDL_FreeBlitMap(surface->map);
   812 		SDL_FreeBlitMap(surface->map);
   813 		surface->map = NULL;
   813 		surface->map = NULL;
   814 	}
   814 	}
   815 	if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) {
   815 	if ( surface->hwdata ) {
   816 		SDL_VideoDevice *video = current_video;
   816 		SDL_VideoDevice *video = current_video;
   817 		SDL_VideoDevice *this  = current_video;
   817 		SDL_VideoDevice *this  = current_video;
   818 		video->FreeHWSurface(this, surface);
   818 		video->FreeHWSurface(this, surface);
   819 	}
   819 	}
   820 	if ( surface->pixels &&
   820 	if ( surface->pixels &&