"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/gdimageline/gdimageline_bug5.c" between
libgd-2.3.0.tar.gz and libgd-2.3.1.tar.gz

About: LibGD is a library for the dynamic creation of images by programmers (PNG, JPEG, GIF, WebP, XPM, BMP support).

gdimageline_bug5.c  (libgd-2.3.0):gdimageline_bug5.c  (libgd-2.3.1)
skipping to change at line 13 skipping to change at line 13
#include "gdtest.h" #include "gdtest.h"
int main() { int main() {
/* Declare the image */ /* Declare the image */
gdImagePtr im, ref; gdImagePtr im, ref;
/* Declare output files */ /* Declare output files */
/* FILE *pngout; */ /* FILE *pngout; */
int black, white; int black, white;
/* If the data seg size is less than 195000,
* gdImageCrateTrueColor will return NULL.
* See https://github.com/libgd/libgd/issues/621 */
im = gdImageCreateTrueColor(63318, 771); im = gdImageCreateTrueColor(63318, 771);
if (gdTestAssertMsg(im != NULL, "gdImageCreateTrueColor() returns NULL\n"
) == 0) {
return gdNumFailures();
}
/* Allocate the color white (red, green and blue all maximum). */ /* Allocate the color white (red, green and blue all maximum). */
white = gdImageColorAllocate(im, 255, 255, 255); white = gdImageColorAllocate(im, 255, 255, 255);
/* Allocate the color white (red, green and blue all maximum). */ /* Allocate the color white (red, green and blue all maximum). */
black = gdImageColorAllocate(im, 0, 0, 0); black = gdImageColorAllocate(im, 0, 0, 0);
/* white background */ /* white background */
gdImageFill(im, 1, 1, white); gdImageFill(im, 1, 1, white);
/* Make a reference copy. */ /* Make a reference copy. */
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)