From 449887b1f6fa43afbf82ddbc0be4dfb0391124b9 Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 10 Sep 2010 02:23:33 +0000 Subject: [PATCH] Some major warnings about C data structures. --- magick/resample.h | 6 ++++++ magick/resize.c | 4 ++++ 2 files changed, 10 insertions(+) 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 { -- 2.40.0