0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.51.72


Current Path : /var/www/html/suk_discontinued/libgd-gd-2.2.3/tests/gdimagerectangle/
Upload File :
Current File : /var/www/html/suk_discontinued/libgd-gd-2.2.3/tests/gdimagerectangle/bug00003.c

#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;
	}
}