diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.0/tests/gdimagecopy/bug00007.c')
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0/tests/gdimagecopy/bug00007.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0/tests/gdimagecopy/bug00007.c b/Build/source/libs/gd/libgd-2.1.0/tests/gdimagecopy/bug00007.c new file mode 100644 index 00000000000..f3106f3a2f4 --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.0/tests/gdimagecopy/bug00007.c @@ -0,0 +1,30 @@ +#include <stdio.h> +#include <stdlib.h> +#include "gd.h" + +#include "gdtest.h" + +int main() +{ + gdImagePtr dst_tc, src; + int c1; + + src = gdImageCreate(5,5); + gdImageAlphaBlending(src, 0); + + gdImageColorAllocate(src, 255,255,255); /* allocate white for background color */ + c1 = gdImageColorAllocateAlpha(src, 255,0,0,70); + + gdImageFilledRectangle(src, 0,0, 4,4, c1); + + dst_tc = gdImageCreateTrueColor(5,5); + gdImageAlphaBlending(dst_tc, 0); + gdImageCopy(dst_tc, src, 0,0, 0,0, gdImageSX(src), gdImageSY(src)); + + /* CuAssertImageEquals(tc, src, dst_tc); */ + + /* Destroy it */ + gdImageDestroy(dst_tc); + gdImageDestroy(src); + return 0; +} |