[BACK]Return to gif.trm CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot / term

Diff for /OpenXM_contrib/gnuplot/term/Attic/gif.trm between version 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2000/01/22 14:16:23 version 1.1.1.3, 2003/09/15 07:09:36
Line 84 
Line 84 
  *   *
  * find out about gd from http://www.boutell.com/gd/   * find out about gd from http://www.boutell.com/gd/
  *   *
    * We recommend to use gd library version 1.3 or 1.4 because it uses
    * Run Length Encoding (RLE) instead of LZW compression. LZW compression
    * is licensed by UNISYS.
    *
  * Gd library versions before 1.3, and gd library 1.5 are subject to   * Gd library versions before 1.3, and gd library 1.5 are subject to
  * the Unisys license. Use at your own risk. From version 1.6 on, gd   * the Unisys license. Use at your own risk. From version 1.6 on, gd
  * library creates png files instead of gif.   * library creates png files instead of gif.
Line 218  GIF_options()
Line 222  GIF_options()
             term->v_char = (unsigned int) (16);              term->v_char = (unsigned int) (16);
             term->h_char = (unsigned int) (8);              term->h_char = (unsigned int) (8);
             ++c_token;              ++c_token;
         } else if (almost_equals(c_token, "l$arge")) {          } else if (almost_equals(c_token, "g$iant")) {
             GIF_font=gdFontGiant;              GIF_font=gdFontGiant;
             gif_font = 4;              gif_font = 4;
             term->v_char = (unsigned int)(15);              term->v_char = (unsigned int)(15);
Line 247  GIF_options()
Line 251  GIF_options()
             if (sscanf(string, "x%lx", &color) != 1) {              if (sscanf(string, "x%lx", &color) != 1) {
                 int_error("invalid color spec, must be xRRGGBB",c_token);                  int_error("invalid color spec, must be xRRGGBB",c_token);
             } else if (gif_state.n_colors == GIF_MAX_COLORS) {              } else if (gif_state.n_colors == GIF_MAX_COLORS) {
                 int_warn("too many colors, ingoring",c_token);                  int_warn("too many colors, ignoring", c_token);
                 ++c_token;                  ++c_token;
             } else {              } else {
                 gif_state.rgb_table[gif_state.n_colors++] = color;                  gif_state.rgb_table[gif_state.n_colors++] = color;
Line 285  GIF_options()
Line 289  GIF_options()
     sprintf(term_options + strlen(term_options),      sprintf(term_options + strlen(term_options),
             "size %d,%d ", GIF_XMAX, GIF_YMAX);              "size %d,%d ", GIF_XMAX, GIF_YMAX);
   
     for (i = 0; i < gif_state.n_colors; i++) {      for (i = 0; strlen(term_options) + 9 < MAX_LINE_LEN &&
                i < gif_state.n_colors; i++) {
         sprintf(term_options + strlen(term_options),          sprintf(term_options + strlen(term_options),
                 "x%06x ", gif_state.rgb_table[i]);                  "x%06x ", gif_state.rgb_table[i]);
     }      }
Line 558  START_HELP(gif)
Line 563  START_HELP(gif)
 "",  "",
 "       set terminal gif transparent xffffff \\",  "       set terminal gif transparent xffffff \\",
 "                        x000000 x202020 x404040 x606060 \\",  "                        x000000 x202020 x404040 x606060 \\",
 "                        x808080 xA0A0A0 xC0C0C0 xE0E0E0 \\",  "                        x808080 xA0A0A0 xC0C0C0 xE0E0E0",
   "",
 " which uses white for the transparent background, black for borders, dark",  " which uses white for the transparent background, black for borders, dark",
 " gray for axes, and a gray-scale for the six plotting colors.",  " gray for axes, and a gray-scale for the six plotting colors.",
 "",  "",

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>