summaryrefslogtreecommitdiff
path: root/src/png.c
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2012-10-05 19:12:25 +0000
committercorvid <corvid@lavabit.com>2012-10-05 19:12:25 +0000
commitd5e75bd44a43d8ef3bfdc9ac98ab4dfc3f6a4f94 (patch)
treefe4c3067a23c460502bb3af2cf31e8b717b9163d /src/png.c
parentd72eeddc676423347093827fe3f2c227284d0e7d (diff)
clean up png struct
Diffstat (limited to 'src/png.c')
-rw-r--r--src/png.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/png.c b/src/png.c
index bf34a8d5..3bf79db7 100644
--- a/src/png.c
+++ b/src/png.c
@@ -64,7 +64,6 @@ struct _DilloPng {
DilloUrl *url; /* Primary Key for the dicache */
int version; /* Secondary Key for the dicache */
- double display_exponent; /* gamma correction */
png_uint_32 width; /* png image width */
png_uint_32 height; /* png image height */
png_structp png_ptr; /* libpng private data */
@@ -75,7 +74,6 @@ struct _DilloPng {
int error; /* error flag */
png_uint_32 previous_row;
int rowbytes; /* No. bytes in image row */
- short passes;
short channels; /* No. image channels */
/*
@@ -177,7 +175,7 @@ Png_datainfo_callback(png_structp png_ptr, png_infop info_ptr)
/* Interlaced */
if (interlace_type != PNG_INTERLACE_NONE) {
- png->passes = png_set_interlace_handling(png_ptr);
+ png_set_interlace_handling(png_ptr);
}
/* get libpng to update its state */