aboutsummaryrefslogtreecommitdiffstats
path: root/main/eboard/eboard-libpng-1.5.patch
blob: 7ff3f51cb2c59a9dc20b3f098bb13469fa366994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- eboard-1.1.1.orig/cimg.cc
+++ eboard-1.1.1/cimg.cc
@@ -94,11 +94,11 @@
       ct == PNG_COLOR_TYPE_GRAY_ALPHA)
     png_set_gray_to_rgb(pngp);
 
-  alloc(pngp->width,pngp->height);
+  alloc(png_get_image_width(pngp, infp), png_get_image_height(pngp, infp));
   if (!ok) { fclose(f); return; }
   ok = 0;
 
-  for(i=0;i<pngp->height;i++) {
+  for(i=0;i<png_get_image_height(pngp, infp);i++) {
     png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
   }