diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.0/tests/gdimagerectangle/bug00003.c')
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0/tests/gdimagerectangle/bug00003.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0/tests/gdimagerectangle/bug00003.c b/Build/source/libs/gd/libgd-2.1.0/tests/gdimagerectangle/bug00003.c new file mode 100644 index 00000000000..4ee4ddbcb5d --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.0/tests/gdimagerectangle/bug00003.c @@ -0,0 +1,23 @@ +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + int c1,c2,c3,c4; + + im = gdImageCreateTrueColor(100,100); + gdImageRectangle(im, 2,2, 80,95, 0x50FFFFFF); + c1 = gdImageGetTrueColorPixel(im, 2, 2); + c2 = gdImageGetTrueColorPixel(im, 80, 95); + c3 = gdImageGetTrueColorPixel(im, 80, 2); + c4 = gdImageGetTrueColorPixel(im, 2, 95); + + gdImageDestroy(im); + if (0x005e5e5e == c1 && 0x005e5e5e == c2 && + 0x005e5e5e == c3 && 0x005e5e5e == c4) { + return 0; + } else { + return 1; + } +} |