From: anthony Date: Mon, 13 Sep 2010 22:34:11 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8933 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a9051bf9d22712f30f282d7179f2672b7026519;p=imagemagick --- diff --git a/magick/resize.c b/magick/resize.c index eb81af468..1199eccf3 100644 --- a/magick/resize.c +++ b/magick/resize.c @@ -174,13 +174,15 @@ static MagickRealType Bohman(const MagickRealType x, return((MagickRealType) ((1-x)*cos(pix)+(1.0/MagickPIL)*sin(pix))); } -static MagickRealType Box(const MagickRealType magick_unused(x), +static MagickRealType Box(const MagickRealType x, const ResizeFilter *magick_unused(resize_filter)) { /* Just return 1.0; the filter will be clipped by its support window. */ - return(1.0); + if ( x < 0.5 ) + return(1.0); + return(0.0); } static MagickRealType CubicBC(const MagickRealType x,