diff options
author | Cyprien Nicolas <cyprien@octopuce.fr> | 2022-10-27 14:36:33 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-25 20:21:09 -0500 |
commit | a5f5698a6832fc1f8179a9257f0b91c9a8ef496b (patch) | |
tree | b218ebb2c6c9960d24468e29daa5312bd9c112e5 /src | |
parent | 46eb3c5c31c942154994b39faa3f21189a15688b (diff) | |
download | libgd-GD-2.3.tar.gz |
Fix #847: enable back GD_BICUBIC* interpolation methodsGD-2.3
(cherry picked from commit 39abd7238cea2ba8baa4bcac1d6fc01c6cb8afab)
Diffstat (limited to 'src')
-rw-r--r-- | src/gd_interpolation.c | 5 |
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; |