diff options
author | tabe <none@none> | 2009-01-18 12:46:38 +0000 |
---|---|---|
committer | tabe <none@none> | 2009-01-18 12:46:38 +0000 |
commit | 6773f8b74288301469f238364cff9f0457b7ecc8 (patch) | |
tree | 4852943aa8b41557a4c38fe287914268b0f6e05b /tests/gdimagefilledellipse/bug00191.c | |
parent | f8c54a6fd4283efe2e50b73e128aacb6055043b4 (diff) | |
download | libgd-6773f8b74288301469f238364cff9f0457b7ecc8.tar.gz |
fixed FS#191; draw the center line regardless of thickness.
Diffstat (limited to 'tests/gdimagefilledellipse/bug00191.c')
-rw-r--r-- | tests/gdimagefilledellipse/bug00191.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/gdimagefilledellipse/bug00191.c b/tests/gdimagefilledellipse/bug00191.c new file mode 100644 index 0000000..d83c364 --- /dev/null +++ b/tests/gdimagefilledellipse/bug00191.c @@ -0,0 +1,21 @@ +/* $Id$ */ +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + int error = 0; + char path[1024]; + + im = gdImageCreate(100, 100); + (void)gdImageColorAllocate(im, 255, 255, 255); + gdImageSetThickness(im, 20); + gdImageFilledEllipse(im, 30, 50, 20, 20, gdImageColorAllocate(im, 0, 0, 0)); + sprintf(path, "%s/gdimagefilledellipse/bug00191.png", GDTEST_TOP_DIR); + if (!gdAssertImageEqualsToFile(path, im)) { + error = 1; + } + gdImageDestroy(im); + return error; +} |