(main): Use gdImageCreateTrueColor only if HAVE_GD > 1.
authorhanda <handa>
Tue, 17 Jan 2006 02:50:19 +0000 (02:50 +0000)
committerhanda <handa>
Tue, 17 Jan 2006 02:50:19 +0000 (02:50 +0000)
example/mdump.c

index f64d249..087f117 100644 (file)
@@ -720,7 +720,11 @@ main (int argc, char **argv)
        }
     }
 
+#if HAVE_GD > 1
   image = gdImageCreateTrueColor (paper_width, paper_height);
+#else
+  image = gdImageCreate (paper_width, paper_height);
+#endif
   from = 0;
   page_index = 1;