summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-03-16 23:17:27 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-03-16 23:17:27 -0500
commit42ed02ed9aa84f5f422178363e510c4aced7b837 (patch)
treeae25b49c69ee609ef08a4e8ad5048487822cfc8e /example.c
parent31d66245ea51a16ab6a64fcaf3435934a6465db0 (diff)
downloadlibpng-42ed02ed9aa84f5f422178363e510c4aced7b837.tar.gz
[libpng16] Reverted png_set_itxt(); it would not compile without warnings.
Diffstat (limited to 'example.c')
-rw-r--r--example.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/example.c b/example.c
index 0549aeb1a..ebc43dc60 100644
--- a/example.c
+++ b/example.c
@@ -863,13 +863,6 @@ void write_png(char *file_name /* , ... other image information ... */)
*/
png_set_gAMA(png_ptr, info_ptr, gamma);
-#if PNG_LIBPNG_VER >= 1.6.0
- png_set_itxt(png_ptr, info_ptr, 0, 0, "Title", "Mona Lisa", NULL, NULL);
- png_set_itxt(png_ptr, info_ptr, 0, 0, "Author", "Leonardo da Vinci", NULL,
- NULL);
- png_set_itxt(png_ptr, info_ptr, 3, 0, "Description", "<long text>", NULL,
- NULL);
-#else
/* Optionally write comments into the image */
{
png_text text_ptr[3];
@@ -903,7 +896,6 @@ void write_png(char *file_name /* , ... other image information ... */)
png_set_text(write_ptr, write_info_ptr, text_ptr, 3);
}
-#endif
/* Other optional chunks like cHRM, bKGD, tRNS, tIME, oFFs, pHYs */