sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / games / eboard / eboard.patch
blobf80c1b2f78d7ed5ae0611187708b974bc7d4415b
1 --- a/cimg.cc 2014-05-25 02:41:58.000000000 -0500
2 +++ b/cimg.cc 2014-05-25 02:42:31.000000000 -0500
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(png_get_image_width(pngp, infp),png_get_image_height(pngp, infp));
9 if (!ok) { fclose(f); return; }
10 ok = 0;
12 - for(i=0;i<pngp->height;i++) {
13 + for(i=0;i<png_get_image_height(pngp, infp);i++) {
14 png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);