Skip to content

Commit

Permalink
IMG_gif.c: build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 9, 2019
1 parent 4943e48 commit bebc661
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions IMG_gif.c
Expand Up @@ -211,12 +211,13 @@ IMG_LoadGIF_RW_Internal(SDL_RWops *src, SDL_bool load_anim)
int bitPixel;
char version[4];
Image *image = NULL;
Anim_t *anim;
Frame_t *frames, *frame;
State_t state;

state.ZeroDataBlock = FALSE;
state.fresh = FALSE;
state.last_byte = 0;
Anim_t *anim;
Frame_t *frames, *frame;

if (src == NULL) {
return NULL;
Expand Down Expand Up @@ -615,13 +616,15 @@ LWZReadByte(SDL_RWops *src, int flag, int input_code_size, State_t * state)
static Image *
ReadImage(SDL_RWops * src, int len, int height, int cmapSize,
unsigned char cmap[3][MAXCOLORMAPSIZE],
int /*gray*/, int interlace, int ignore, State_t * state)
int gray, int interlace, int ignore, State_t * state)
{
Image *image;
unsigned char c;
int i, v;
int xpos = 0, ypos = 0, pass = 0;

(void) gray; /* unused */

/*
** Initialize the compression routines
*/
Expand Down

0 comments on commit bebc661

Please sign in to comment.