=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/term/Attic/gif.trm,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.3 diff -u -p -r1.1.1.2 -r1.1.1.3 --- OpenXM_contrib/gnuplot/term/Attic/gif.trm 2000/01/22 14:16:23 1.1.1.2 +++ OpenXM_contrib/gnuplot/term/Attic/gif.trm 2003/09/15 07:09:36 1.1.1.3 @@ -1,5 +1,5 @@ /* - * $Id: gif.trm,v 1.1.1.2 2000/01/22 14:16:23 maekawa Exp $ + * $Id: gif.trm,v 1.1.1.3 2003/09/15 07:09:36 ohara Exp $ */ /* GNUPLOT -- gif.trm */ @@ -84,6 +84,10 @@ * * 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 * the Unisys license. Use at your own risk. From version 1.6 on, gd * library creates png files instead of gif. @@ -218,7 +222,7 @@ GIF_options() term->v_char = (unsigned int) (16); term->h_char = (unsigned int) (8); ++c_token; - } else if (almost_equals(c_token, "l$arge")) { + } else if (almost_equals(c_token, "g$iant")) { GIF_font=gdFontGiant; gif_font = 4; term->v_char = (unsigned int)(15); @@ -247,7 +251,7 @@ GIF_options() if (sscanf(string, "x%lx", &color) != 1) { int_error("invalid color spec, must be xRRGGBB",c_token); } 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; } else { gif_state.rgb_table[gif_state.n_colors++] = color; @@ -285,7 +289,8 @@ GIF_options() sprintf(term_options + strlen(term_options), "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), "x%06x ", gif_state.rgb_table[i]); } @@ -558,7 +563,8 @@ START_HELP(gif) "", " set terminal gif transparent xffffff \\", " x000000 x202020 x404040 x606060 \\", -" x808080 xA0A0A0 xC0C0C0 xE0E0E0 \\", +" x808080 xA0A0A0 xC0C0C0 xE0E0E0", +"", " which uses white for the transparent background, black for borders, dark", " gray for axes, and a gray-scale for the six plotting colors.", "",