diff --git a/ChangeLog b/ChangeLog index 858c2724f5..c7a3364b1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-19 Sven Neumann + + * plug-ins/common/gif.c (save_image): removed warning when reusing + a color index for transparency. Shouldn't pose a problem for any + GIF viewer and only confuses our users. + 2006-02-19 Sven Neumann * plug-ins/common/gauss.c: added some const qualifiers and other diff --git a/plug-ins/common/gif.c b/plug-ins/common/gif.c index c21f6a364a..1a753ff280 100644 --- a/plug-ins/common/gif.c +++ b/plug-ins/common/gif.c @@ -1096,8 +1096,9 @@ save_image (const gchar *filename, drawable->width * drawable->height); } else - transparent = -1; - + { + transparent = -1; + } BitsPerPixel = colorstobpp (colors); @@ -1106,23 +1107,19 @@ save_image (const gchar *filename, /* We were able to re-use an index within the existing bitspace, whereas the estimate in the header was pessimistic but still needs to be upheld... */ +#ifdef GIFDEBUG static gboolean onceonly = FALSE; if (!onceonly) { -#ifdef GIFDEBUG g_warning ("Promised %d bpp, pondered writing chunk with %d bpp!", liberalBPP, BitsPerPixel); -#endif - g_message (_("Warning:\n" - "Transparent color in written file might be " - "incorrect on viewers which don't support " - "transparency.")); onceonly = TRUE; } +#endif } - useBPP = (BitsPerPixel > liberalBPP) ? BitsPerPixel : liberalBPP; + useBPP = (BitsPerPixel > liberalBPP) ? BitsPerPixel : liberalBPP; if (is_gif89) { @@ -1154,7 +1151,7 @@ save_image (const gchar *filename, if (!onceonly) { g_message (_("Delay inserted to prevent evil " - "CPU-sucking anim.")); + "CPU-sucking animation.")); onceonly = TRUE; } Delay89 = 1;