"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/tiff/tiff_dpi.c" between
libgd-2.2.4.tar.gz and libgd-2.2.5.tar.gz

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

tiff_dpi.c  (libgd-2.2.4):tiff_dpi.c  (libgd-2.2.5)
/* /*
* Test that reading and writing image resolution values to/from TIFF files * Test that reading and writing image resolution values to/from TIFF files
* works correctly. Set the image resolution, write the file, read the file * works correctly. Set the image resolution, write the file, read the file
* back and test that the image resolution comes back correct. * back and test that the image resolution comes back correct.
*/ */
#ifdef _WIN32
#include <stdio.h>
int main()
{
printf("skip");
return 0;
}
#else
#include "gd.h" #include "gd.h"
#include "gdtest.h" #include "gdtest.h"
int main() int main()
{ {
gdImagePtr src, dst; gdImagePtr src, dst;
int r, res_x, res_y; int r, res_x, res_y;
void *p; void *p;
int size = 0; int size = 0;
int status = 0; int status = 0;
skipping to change at line 84 skipping to change at line 77
gdTestErrorMsg("mismatch in res_y (got %d, expected %d)\n", dst-> res_y, res_y); gdTestErrorMsg("mismatch in res_y (got %d, expected %d)\n", dst-> res_y, res_y);
} }
gdImageDestroy(dst); gdImageDestroy(dst);
door1: door1:
gdFree(p); gdFree(p);
door0: door0:
gdImageDestroy(src); gdImageDestroy(src);
return status; return status;
} }
#endif
 End of changes. 2 change blocks. 
8 lines changed or deleted 1 lines changed or added

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