"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/gdimagestring16/gdimagestring16.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).

gdimagestring16.c  (libgd-2.3.0):gdimagestring16.c  (libgd-2.3.1)
skipping to change at line 12 skipping to change at line 12
* Base test for gdImageString16() * Base test for gdImageString16()
*/ */
#include <gd.h> #include <gd.h>
#include <gdfontl.h> #include <gdfontl.h>
#include "gdtest.h" #include "gdtest.h"
int main() int main()
{ {
/* Declare the image */ /* Declare the image */
gdImagePtr im = NULL; gdImagePtr im = NULL;
wchar_t *wchr = L"H"; unsigned short s[2] = {'H', 0};
unsigned short *sptr;
sptr = (unsigned short *)wchr;
int foreground; int foreground;
int errorcode = 0; int errorcode = 0;
gdFontPtr fontptr = gdFontGetLarge(); gdFontPtr fontptr = gdFontGetLarge();
im = gdImageCreate(20, 20); im = gdImageCreate(20, 20);
gdImageColorAllocate(im, 255, 255, 255); gdImageColorAllocate(im, 255, 255, 255);
foreground = gdImageColorAllocate(im, 22, 4, 238); foreground = gdImageColorAllocate(im, 22, 4, 238);
gdImageString16(im, fontptr, 2, 2, sptr, foreground); gdImageString16(im, fontptr, 2, 2, s, foreground);
if (!gdAssertImageEqualsToFile("gdimagestring16/gdimagestring16_exp.png", im)) if (!gdAssertImageEqualsToFile("gdimagestring16/gdimagestring16_exp.png", im))
errorcode = 1; errorcode = 1;
/* Destroy the image in memory */ /* Destroy the image in memory */
gdImageDestroy(im); gdImageDestroy(im);
return errorcode; return errorcode;
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

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