Permalink
Browse files

initialize the SortFlag for colour maps for giflib 5.x

  • Loading branch information...
1 parent fe9a37d commit 2e7205447bb9db8ab23e7143eb0c1876d47ed321 @tonycoz committed Oct 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 GIF/imgif.c
View
@@ -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;
}

0 comments on commit 2e72054

Please sign in to comment.