]> granicus.if.org Git - graphviz/commitdiff
eliminate jpeg dependency
authorellson <devnull@localhost>
Thu, 19 Jan 2006 22:28:20 +0000 (22:28 +0000)
committerellson <devnull@localhost>
Thu, 19 Jan 2006 22:28:20 +0000 (22:28 +0000)
lib/gd/gdfx.c

index e63f2d45940d16d5d973a0ea17003f34db269dfe..0566f8bde2b05f63778c4345c8f38bda10f646b8 100644 (file)
@@ -232,16 +232,26 @@ main (int argc, char *argv[])
   /* Create an image of text on a circle, with an
      alpha channel so that we can copy it onto a
      background */
+
+  im = NULL;
+
+/* What is this eleanor.jpg stuff doing here anyway?
+ * There is no such file in the gd-2.0.33 sources. */
+#if 0
+#if HAVE_LIBJPEG
   in = fopen ("eleanor.jpg", "rb");
-  if (!in)
-    {
-      im = gdImageCreateTrueColor (300, 300);
-    }
-  else
+  if (in)
     {
       im = gdImageCreateFromJpeg (in);
       fclose (in);
     }
+#endif
+#endif
+
+  if (!im)
+    {
+      im = gdImageCreateTrueColor (300, 300);
+    }
   if (gdImageSX (im) < gdImageSY (im))
     {
       radius = gdImageSX (im) / 2;