diff options
Diffstat (limited to 'Build/source/libs/gd/gd-2.0.35/tests/gdtiled/bug00032.c')
-rw-r--r-- | Build/source/libs/gd/gd-2.0.35/tests/gdtiled/bug00032.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Build/source/libs/gd/gd-2.0.35/tests/gdtiled/bug00032.c b/Build/source/libs/gd/gd-2.0.35/tests/gdtiled/bug00032.c new file mode 100644 index 00000000000..879913ed31d --- /dev/null +++ b/Build/source/libs/gd/gd-2.0.35/tests/gdtiled/bug00032.c @@ -0,0 +1,31 @@ +#include <gd.h> +#include <stdio.h> +#include "gdtest.h" + +#define exp_img "bug00032_exp.png" + +int main() +{ + gdImagePtr im, tile; + char exp[] = "bug00032_exp.png"; + FILE *fp; + + tile = gdImageCreateTrueColor(10, 10); + gdImageFill(tile, 0, 0, 0xFFFFFF); + gdImageLine(tile, 0,0, 9,9, 0xff0000); + gdImageColorTransparent(tile, 0xFFFFFF); + + im = gdImageCreateTrueColor(50, 50); + gdImageFilledRectangle(im, 0, 0, 25, 25, 0x00FF00); + + gdImageSetTile(im, tile); + gdImageFilledRectangle(im, 10, 10, 49, 49, gdTiled); + + gdAssertImageEqualsToFile(exp_img, im); + + /* Destroy it */ + gdImageDestroy(im); + gdImageDestroy(tile); + return 0; +} + |