/* Change any previous mappings from/to the new surface format  */
void SDL_FormatChanged(SDL_Surface *surface)
/* Change any previous mappings from/to the new surface format  */
void SDL_FormatChanged(SDL_Surface *surface)
{
	static int format_version = 0;
	++format_version;
	if ( format_version < 0 ) {
		format_version = 1;
	}
	surface->format_version = format_version;
	SDL_InvalidateMap(surface->map);
}