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 /tests/gdimagesetinterpolationmethod/github_bug_00847.c | |
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 'tests/gdimagesetinterpolationmethod/github_bug_00847.c')
-rw-r--r-- | tests/gdimagesetinterpolationmethod/github_bug_00847.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/gdimagesetinterpolationmethod/github_bug_00847.c b/tests/gdimagesetinterpolationmethod/github_bug_00847.c new file mode 100644 index 0000000..bd85216 --- /dev/null +++ b/tests/gdimagesetinterpolationmethod/github_bug_00847.c @@ -0,0 +1,12 @@ +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + im = gdImageCreate(1, 1); + gdTestAssert(gdImageSetInterpolationMethod(im, GD_BICUBIC_FIXED) != 0); + gdTestAssert(gdImageGetInterpolationMethod(im) == GD_BICUBIC_FIXED); + gdImageDestroy(im); + return gdNumFailures(); +} |