diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-04-13 22:08:21 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-04-13 22:08:21 -0500 |
commit | 930af7d50b13865e0557c0cc8949c1f992b8e287 (patch) | |
tree | b36e5affd02717845d503f46d63441ac53bf0c45 /example.c | |
parent | 0f544f62d6631b07126d0bbfd69d612b0388f01c (diff) | |
download | libpng-930af7d50b13865e0557c0cc8949c1f992b8e287.tar.gz |
[master] Documented the fact that png_set_dither() is no longer supported.
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |