summaryrefslogtreecommitdiff
path: root/tests/gdimagesetinterpolationmethod/github_bug_00847.c
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 /tests/gdimagesetinterpolationmethod/github_bug_00847.c
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 'tests/gdimagesetinterpolationmethod/github_bug_00847.c')
-rw-r--r--tests/gdimagesetinterpolationmethod/github_bug_00847.c12
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();
+}