From: handa Date: Tue, 17 Jan 2006 02:50:19 +0000 (+0000) Subject: (main): Use gdImageCreateTrueColor only if HAVE_GD > 1. X-Git-Tag: REL-1-3-1~6 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f5851b701bf7ca6cc7adbf0657cfbe52022a20;p=m17n%2Fm17n-lib.git (main): Use gdImageCreateTrueColor only if HAVE_GD > 1. --- diff --git a/example/mdump.c b/example/mdump.c index f64d249..087f117 100644 --- a/example/mdump.c +++ b/example/mdump.c @@ -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;