diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-28 13:02:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-28 13:02:55 +0000 |
commit | 0ab1df962d59d5ae6f10c9022eb5256fcf5a959d (patch) | |
tree | 6b7876ff74db4abd14af0fefd5032fc9635c0ac0 /main/eboard/eboard-libpng-1.5.patch | |
parent | bcc3b8fe7f57c2395ae6894dc3506951fd626197 (diff) | |
download | aports-0ab1df962d59d5ae6f10c9022eb5256fcf5a959d.tar.bz2 aports-0ab1df962d59d5ae6f10c9022eb5256fcf5a959d.tar.xz |
main/eboard: fix build against libpng-1.5
Diffstat (limited to 'main/eboard/eboard-libpng-1.5.patch')
-rw-r--r-- | main/eboard/eboard-libpng-1.5.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/eboard/eboard-libpng-1.5.patch b/main/eboard/eboard-libpng-1.5.patch new file mode 100644 index 0000000000..7ff3f51cb2 --- /dev/null +++ b/main/eboard/eboard-libpng-1.5.patch @@ -0,0 +1,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); + } + |