From 12ba034dc88ab3ef269651658fb068f4ee2655f7 Mon Sep 17 00:00:00 2001 From: homm Date: Sat, 25 Oct 2014 12:39:03 +0400 Subject: [PATCH] unlock upscale filters --- libImaging/Antialias.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libImaging/Antialias.c b/libImaging/Antialias.c index e608ec8df..2f89e9db8 100644 --- a/libImaging/Antialias.c +++ b/libImaging/Antialias.c @@ -65,7 +65,7 @@ static struct filter BILINEAR = { bilinear_filter, 1.0 }; static inline float bicubic_filter(float x) { /* http://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm */ -#define a -1.0 +#define a -0.5 if (x < 0.0) x = -x; if (x < 1.0) @@ -129,7 +129,6 @@ ImagingStretch(Imaging imOut, Imaging imIn, int filter) if (filterscale < 1.0) { filterscale = 1.0; - support = 0.5; } support = support * filterscale;