You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-board/eboard/files/eboard-1.1.1-libpng15.patch

17 lines
359 B

--- a/cimg.cc
+++ b/cimg.cc
@@ -94,11 +95,11 @@
ct == PNG_COLOR_TYPE_GRAY_ALPHA)
png_set_gray_to_rgb(pngp);
- alloc(pngp->width,pngp->height);
+ alloc(width,height);
if (!ok) { fclose(f); return; }
ok = 0;
- for(i=0;i<pngp->height;i++) {
+ for(i=0;i<height;i++) {
png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
}