/[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.3 by leeming, Thu Apr 24 09:35:34 2003 UTC revision 1.4 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 25  Line 25 
25   *   *
26   *.   *.
27   *  This file is part of the XForms library package.   *  This file is part of the XForms library package.
28   *  Copyright (c) 1993, 1998-2002  By T.C. Zhao   *  Copyright (c) 1993, 1998-2002  By T.C. Zhao
29   *  All rights reserved.   *  All rights reserved.
30   *.   *.
31   *   *
# Line 42  Line 42 
42   *   image descriptor   --- 1   *   image descriptor   --- 1
43   *   raster             --- 2   *   raster             --- 2
44   *   terminator   *   terminator
45   *     *
46   *  1 & 2 can be repeated.   *  1 & 2 can be repeated.
47   */   */
48    
# Line 271  convert_gif_text(FL_IMAGE * im) Line 271  convert_gif_text(FL_IMAGE * im)
271          if (!p->str[0])          if (!p->str[0])
272              continue;              continue;
273    
274          /*          /*
275           * gif text size is given in pixels, convert to point. 1pixel =           * gif text size is given in pixels, convert to point. 1pixel =
276           * 0.75pt for a typical screen           * 0.75pt for a typical screen
277           */           */
# Line 956  write_pixels(FL_IMAGE * im) Line 956  write_pixels(FL_IMAGE * im)
956      WorkStr workstring;      WorkStr workstring;
957      FILE *fp = im->fpout;      FILE *fp = im->fpout;
958    
959      /*      /*
960       * IMPORTANT: number of colors handed to this routine might not be 2^n,       * IMPORTANT: number of colors handed to this routine might not be 2^n,
961       * need to make it so to fool the encoder (colors-1 need to be full bits)       * need to make it so to fool the encoder (colors-1 need to be full bits)
962       */       */
# Line 976  write_pixels(FL_IMAGE * im) Line 976  write_pixels(FL_IMAGE * im)
976      ccode = EOFCode + 1;      ccode = EOFCode + 1;
977      cstr->prefix = -1;      cstr->prefix = -1;
978    
979      /*      /*
980       * start raster stream. Old way of doing things, that is as soon as we       * start raster stream. Old way of doing things, that is as soon as we
981       * get 4095, a clearcode is emitted.       * get 4095, a clearcode is emitted.
982       */       */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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