]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Mon, 13 Sep 2010 22:34:11 +0000 (22:34 +0000)
committeranthony <anthony@git.imagemagick.org>
Mon, 13 Sep 2010 22:34:11 +0000 (22:34 +0000)
magick/resize.c

index eb81af4680a5d1ed40e2d59dd0a666e98556d7b0..1199eccf312e9fa363c25306f6596a24a3f8b42d 100644 (file)
@@ -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,