]> granicus.if.org Git - graphviz/commitdiff
fix for transparency in -Tgif:gd
authorellson <devnull@localhost>
Wed, 29 Jul 2009 18:02:17 +0000 (18:02 +0000)
committerellson <devnull@localhost>
Wed, 29 Jul 2009 18:02:17 +0000 (18:02 +0000)
plugin/gd/gvrender_gd.c

index dc29a8b7c90391acd6312f3f28b357bbe589919c..f8b2452fbd091dd93e7565161a9773b68b0d8401 100644 (file)
@@ -664,14 +664,14 @@ gvplugin_installed_t gvrender_gd_types[] = {
 gvplugin_installed_t gvdevice_gd_types2[] = {
 #ifdef HAVE_LIBGD
 #ifdef HAVE_GD_GIF
-    {FORMAT_GIF, "gif:gd", 1, NULL, &device_features_gd},
+    {FORMAT_GIF, "gif:gd", 1, NULL, &device_features_gd_tc},  /* pretend gif is truecolor because it supports transparency */
     {FORMAT_WBMP, "wbmp:gd", 1, NULL, &device_features_gd},
 #endif
 
 #ifdef HAVE_GD_JPEG
-    {FORMAT_JPEG, "jpe:gd", 1, NULL, &device_features_gd_tc},
-    {FORMAT_JPEG, "jpeg:gd", 1, NULL, &device_features_gd_tc},
-    {FORMAT_JPEG, "jpg:gd", 1, NULL, &device_features_gd_tc},
+    {FORMAT_JPEG, "jpe:gd", 1, NULL, &device_features_gd},
+    {FORMAT_JPEG, "jpeg:gd", 1, NULL, &device_features_gd},
+    {FORMAT_JPEG, "jpg:gd", 1, NULL, &device_features_gd},
 #endif
 
 #ifdef HAVE_GD_PNG