/[xforms]/xforms/image/image_gif.c
ViewVC logotype

Diff of /xforms/image/image_gif.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by leeming, Thu Nov 27 10:29:47 2003 UTC revision 1.7 by leeming, Thu Nov 27 12:24:17 2003 UTC
# Line 586  GIF_load(FL_IMAGE * im) Line 586  GIF_load(FL_IMAGE * im)
586  #define MC_SIZE      4097  #define MC_SIZE      4097
587    
588  /* if we've got more than one scanline, output */  /* if we've got more than one scanline, output */
589  static void flush_buffer(FL_IMAGE * im, int incode)  static void flush_buffer(FL_IMAGE * im)
590  {  {
591      int i;      int i;
592        int incode;
593    
594      incode = lbuf - lhead;      incode = lbuf - lhead;
595      if (incode >= im->w)      if (incode >= im->w)
# Line 669  process_lzw_code(FL_IMAGE * im, register Line 670  process_lzw_code(FL_IMAGE * im, register
670           * it crashed...           * it crashed...
671           * So flush the buffer before it overuns.           * So flush the buffer before it overuns.
672           */           */
673          flush_buffer(im, incode);          flush_buffer(im);
674          return 0;          return 0;
675      }      }
676    
# Line 709  process_lzw_code(FL_IMAGE * im, register Line 710  process_lzw_code(FL_IMAGE * im, register
710      while (stackp > stack);      while (stackp > stack);
711    
712      /* if we've got more than one scanline, output */      /* if we've got more than one scanline, output */
713      flush_buffer(im, incode);      flush_buffer(im);
714      return 0;      return 0;
715  }  }
716    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26