Parent Directory
|
Revision Log
Fix building with libpng15 wrt #383199 by Diego Elio Pettenò (Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
| 1 | --- cimg.cc |
| 2 | +++ cimg.cc |
| 3 | @@ -94,11 +95,11 @@ |
| 4 | ct == PNG_COLOR_TYPE_GRAY_ALPHA) |
| 5 | png_set_gray_to_rgb(pngp); |
| 6 | |
| 7 | - alloc(pngp->width,pngp->height); |
| 8 | + alloc(width,height); |
| 9 | if (!ok) { fclose(f); return; } |
| 10 | ok = 0; |
| 11 | |
| 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); |
| 15 | } |
| 16 |
| ViewVC Help | |
| Powered by ViewVC 1.1.13 |