From: anthony Date: Fri, 10 Sep 2010 02:23:33 +0000 (+0000) Subject: Some major warnings about C data structures. X-Git-Tag: 7.0.1-0~8958 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=449887b1f6fa43afbf82ddbc0be4dfb0391124b9;p=imagemagick Some major warnings about C data structures. --- diff --git a/magick/resample.h b/magick/resample.h index 064734c0c..cd8b6e62e 100644 --- a/magick/resample.h +++ b/magick/resample.h @@ -24,6 +24,12 @@ extern "C" { #include +/* + WARNING: The order of this table must also match the order + of a table located in AcquireResizeFilter() or "resize.c" + Otherwise the users filter will not match the actual filter + that is setup. +*/ typedef enum { UndefinedFilter, diff --git a/magick/resize.c b/magick/resize.c index 05353db4c..bcc8b0d1f 100644 --- a/magick/resize.c +++ b/magick/resize.c @@ -591,6 +591,10 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image, filter function (must be windowed) could be upgraded to a 'Bessel' filter if a "cylindrical" filter is requested, unless a "Sinc" filter specifically request. + + WARNING: The order of this tabel must match the order of the FilterTypes + enumeration specified in "resample.h", or the filter names will not match + the filter being setup. */ static struct {