diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-01-14 10:59:36 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-01-14 10:59:36 +0000 |
commit | aa7bbf0e9b00afeeab12fb092b62976cf24fb439 (patch) | |
tree | c18d4ee9d969c2fca65036c7d9194d0961df61a3 /Build/source/libs/gd/libgd-2.1.1/tests/gdimagefilledrectangle/bug00004.c | |
parent | 51f86fe156c11e441cc74238dc38b99f9576d1a9 (diff) |
libgd 2.1.1
git-svn-id: svn://tug.org/texlive/trunk@36054 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.1/tests/gdimagefilledrectangle/bug00004.c')
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.1/tests/gdimagefilledrectangle/bug00004.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.1/tests/gdimagefilledrectangle/bug00004.c b/Build/source/libs/gd/libgd-2.1.1/tests/gdimagefilledrectangle/bug00004.c new file mode 100644 index 00000000000..594e29637d7 --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.1/tests/gdimagefilledrectangle/bug00004.c @@ -0,0 +1,27 @@ +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + int c1,c2,c3,c4,c5; + + im = gdImageCreateTrueColor(100,100); + gdImageFilledRectangle(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); + c5 = gdImageGetTrueColorPixel(im, 49, 49); + + gdImageDestroy(im); + if (0x005e5e5e == c1 && 0x005e5e5e == c2 && + 0x005e5e5e == c3 && 0x005e5e5e == c4 && + 0x005e5e5e == c5) { + return 0; + } else { + return 1; + } +} + |