diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2023-01-25 19:49:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 19:49:31 +0100 |
commit | d11db230d3e8c48630e0abe24e34f0f12f45d989 (patch) | |
tree | 539422e4d626d011420e0cfe775d2049866533b9 /tests/gdimagesetinterpolationmethod/github_bug_00847.c | |
parent | fe3e0d388c5b964d8ac2612e31b28344d400b063 (diff) | |
parent | 39abd7238cea2ba8baa4bcac1d6fc01c6cb8afab (diff) | |
download | libgd-master.tar.gz |
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.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(); +} |