summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-04-13 22:08:21 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-04-13 22:08:21 -0500
commit930af7d50b13865e0557c0cc8949c1f992b8e287 (patch)
treeb36e5affd02717845d503f46d63441ac53bf0c45 /example.c
parent0f544f62d6631b07126d0bbfd69d612b0388f01c (diff)
downloadlibpng-930af7d50b13865e0557c0cc8949c1f992b8e287.tar.gz
[master] Documented the fact that png_set_dither() is no longer supported.
Diffstat (limited to 'example.c')
-rw-r--r--example.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example.c b/example.c
index 8c5d87b66..b79d8413c 100644
--- a/example.c
+++ b/example.c
@@ -271,6 +271,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* File is already open */
png_set_gamma(png_ptr, screen_gamma, 0.45455);
}
+#ifdef PNG_READ_DITHER_SUPPORTED
/* Dither RGB files down to 8 bit palette or reduce palettes
* to the number of colors available on your screen.
*/
@@ -299,6 +300,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* File is already open */
max_screen_colors, histogram, 0);
}
}
+#endif /* PNG_READ_DITHER_SUPPORTED */
/* Invert monochrome files to have 0 as white and 1 as black */
png_set_invert_mono(png_ptr);