IMG_gif.c
changeset 720 58e4a9ae8cd2
parent 719 a1fd4472ed6b
child 721 2ab0052024a3
equal deleted inserted replaced
719:a1fd4472ed6b 720:58e4a9ae8cd2
   209     int grayScale;
   209     int grayScale;
   210     int useGlobalColormap;
   210     int useGlobalColormap;
   211     int bitPixel;
   211     int bitPixel;
   212     char version[4];
   212     char version[4];
   213     Image *image = NULL;
   213     Image *image = NULL;
       
   214     Anim_t *anim;
       
   215     Frame_t *frames, *frame;
   214     State_t state;
   216     State_t state;
       
   217 
   215     state.ZeroDataBlock = FALSE;
   218     state.ZeroDataBlock = FALSE;
   216     state.fresh = FALSE;
   219     state.fresh = FALSE;
   217     state.last_byte = 0;
   220     state.last_byte = 0;
   218     Anim_t *anim;
       
   219     Frame_t *frames, *frame;
       
   220 
   221 
   221     if (src == NULL) {
   222     if (src == NULL) {
   222         return NULL;
   223         return NULL;
   223     }
   224     }
   224     start = SDL_RWtell(src);
   225     start = SDL_RWtell(src);
   613 }
   614 }
   614 
   615 
   615 static Image *
   616 static Image *
   616 ReadImage(SDL_RWops * src, int len, int height, int cmapSize,
   617 ReadImage(SDL_RWops * src, int len, int height, int cmapSize,
   617           unsigned char cmap[3][MAXCOLORMAPSIZE],
   618           unsigned char cmap[3][MAXCOLORMAPSIZE],
   618           int /*gray*/, int interlace, int ignore, State_t * state)
   619           int gray, int interlace, int ignore, State_t * state)
   619 {
   620 {
   620     Image *image;
   621     Image *image;
   621     unsigned char c;
   622     unsigned char c;
   622     int i, v;
   623     int i, v;
   623     int xpos = 0, ypos = 0, pass = 0;
   624     int xpos = 0, ypos = 0, pass = 0;
       
   625 
       
   626     (void) gray; /* unused */
   624 
   627 
   625     /*
   628     /*
   626     **  Initialize the compression routines
   629     **  Initialize the compression routines
   627      */
   630      */
   628     if (!ReadOK(src, &c, 1)) {
   631     if (!ReadOK(src, &c, 1)) {