IMG.c
branchSDL-1.2
changeset 607 1a1189c2978f
parent 280 ec4ae96c100c
equal deleted inserted replaced
606:4872fdc71670 607:1a1189c2978f
    29 
    29 
    30 #define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
    30 #define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
    31 
    31 
    32 /* Table of image detection and loading functions */
    32 /* Table of image detection and loading functions */
    33 static struct {
    33 static struct {
    34 	char *type;
    34 	const char *type;
    35 	int (SDLCALL *is)(SDL_RWops *src);
    35 	int (SDLCALL *is)(SDL_RWops *src);
    36 	SDL_Surface *(SDLCALL *load)(SDL_RWops *src);
    36 	SDL_Surface *(SDLCALL *load)(SDL_RWops *src);
    37 } supported[] = {
    37 } supported[] = {
    38 	/* keep magicless formats first */
    38 	/* keep magicless formats first */
    39 	{ "TGA", NULL,      IMG_LoadTGA_RW },
    39 	{ "TGA", NULL,      IMG_LoadTGA_RW },