]> git.imager.perl.org - imager.git/commitdiff
initialize the SortFlag for colour maps for giflib 5.x
authorTony Cook <tony@develop-help.com>
Mon, 15 Oct 2012 08:39:36 +0000 (19:39 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 15 Oct 2012 08:39:36 +0000 (19:39 +1100)
GIF/imgif.c

index a0c31b722b2d4ada0d46a2fdc3cdc2d171ea90c6..8dfe83454fea5e990c49530d41533d90242c16e5 100644 (file)
@@ -1210,6 +1210,9 @@ make_gif_map(i_quantize *quant, i_img *img, int want_trans) {
     i_push_error(0, "Could not create color map object");
     return NULL;
   }
+#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5
+  map->SortFlag = 0;
+#endif
   return map;
 }