summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2023-01-25 19:49:31 +0100
committerGitHub <noreply@github.com>2023-01-25 19:49:31 +0100
commitd11db230d3e8c48630e0abe24e34f0f12f45d989 (patch)
tree539422e4d626d011420e0cfe775d2049866533b9 /src
parentfe3e0d388c5b964d8ac2612e31b28344d400b063 (diff)
parent39abd7238cea2ba8baa4bcac1d6fc01c6cb8afab (diff)
downloadlibgd-master.tar.gz
Merge pull request #848 from fulax/github_bug_00847HEADmaster
Fix #847: enable back GD_BICUBIC* interpolation methods
Diffstat (limited to 'src')
-rw-r--r--src/gd_interpolation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gd_interpolation.c b/src/gd_interpolation.c
index 1f625dd..cf77da7 100644
--- a/src/gd_interpolation.c
+++ b/src/gd_interpolation.c
@@ -2257,6 +2257,11 @@ BGD_DECLARE(int) gdImageSetInterpolationMethod(gdImagePtr im, gdInterpolationMet
case GD_BESSEL:
im->interpolation = filter_bessel;
break;
+ case GD_BICUBIC_FIXED:
+ case GD_BICUBIC:
+ /* no interpolation as gdImageScale calls a dedicated function */
+ im->interpolation = NULL;
+ break;
case GD_BLACKMAN:
im->interpolation = filter_blackman;
break;