python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / eboard / patches / cimg.patch
blob3d38246fa1fe5e6f7796b93f813bed10cb8a825d
1 --- cimg.cc.orig 2017-01-05 00:43:20.664395461 +0100
2 +++ cimg.cc 2017-01-05 00:44:12.366397039 +0100
3 @@ -94,11 +94,11 @@
4 ct == PNG_COLOR_TYPE_GRAY_ALPHA)
5 png_set_gray_to_rgb(pngp);
7 - alloc(pngp->width,pngp->height);
8 + alloc(width,height);
9 if (!ok) { fclose(f); return; }
10 ok = 0;
12 - for(i=0;i<pngp->height;i++) {
13 + for(i=0;i<height;i++) {
14 png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);