1 --- eboard-1.1.1/cimg.cc~ 2008-02-22 16:51:22.000000000 +0100
2 +++ eboard-1.1.1/cimg.cc 2012-02-11 12:13:32.243687703 +0100
4 ct == PNG_COLOR_TYPE_GRAY_ALPHA)
5 png_set_gray_to_rgb(pngp, infp);
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; }
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);