diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/gdimagefilledpolygon/self_intersecting.c')
-rw-r--r-- | Build/source/libs/gd/libgd-src/tests/gdimagefilledpolygon/self_intersecting.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimagefilledpolygon/self_intersecting.c b/Build/source/libs/gd/libgd-src/tests/gdimagefilledpolygon/self_intersecting.c index ebb1404984d..f9b96dac535 100644 --- a/Build/source/libs/gd/libgd-src/tests/gdimagefilledpolygon/self_intersecting.c +++ b/Build/source/libs/gd/libgd-src/tests/gdimagefilledpolygon/self_intersecting.c @@ -3,29 +3,27 @@ * *currently* using the even-odd fillrule. */ - #include "gd.h" #include "gdtest.h" - int main() { - gdImagePtr im; - int black; - gdPoint points[] = {{50, 5}, {24, 86}, {93, 36}, {7, 36}, {76, 86}}; - char *path; + gdImagePtr im; + int black; + gdPoint points[] = {{50, 5}, {24, 86}, {93, 36}, {7, 36}, {76, 86}}; + char *path; - im = gdImageCreate(100, 100); - gdImageColorAllocate(im, 255, 255, 255); - black = gdImageColorAllocate(im, 0, 0, 0); + im = gdImageCreate(100, 100); + gdImageColorAllocate(im, 255, 255, 255); + black = gdImageColorAllocate(im, 0, 0, 0); - gdImageFilledPolygon(im, points, 5, black); + gdImageFilledPolygon(im, points, 5, black); - path = gdTestFilePath2("gdimagefilledpolygon", "self_intersecting_exp.png"); - gdAssertImageEqualsToFile(path, im); - gdFree(path); + path = gdTestFilePath2("gdimagefilledpolygon", "self_intersecting_exp.png"); + gdAssertImageEqualsToFile(path, im); + gdFree(path); - gdImageDestroy(im); + gdImageDestroy(im); - return gdNumFailures(); + return gdNumFailures(); } |