summaryrefslogtreecommitdiff
path: root/source/xap/gnuchess/eboard.png16.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/gnuchess/eboard.png16.diff')
-rw-r--r--source/xap/gnuchess/eboard.png16.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/xap/gnuchess/eboard.png16.diff b/source/xap/gnuchess/eboard.png16.diff
new file mode 100644
index 00000000..f5743cdd
--- /dev/null
+++ b/source/xap/gnuchess/eboard.png16.diff
@@ -0,0 +1,16 @@
+--- ./cimg.cc.orig 2008-02-22 09:51:22.000000000 -0600
++++ ./cimg.cc 2015-03-23 11:10:46.570421240 -0500
+@@ -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);
+ }
+