diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-02-17 13:55:09 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-02-17 13:55:09 -0500 |
commit | e0a1107cfcbb75ecb1f3a1342283e3f7e1417f6f (patch) | |
tree | cd96b6cea951cb6058cdd2efed2ff296b6e41b27 /libdimension/png.c | |
parent | b53b1881417f040c85e1f47d1136f954217ad0e7 (diff) | |
download | dimension-e0a1107cfcbb75ecb1f3a1342283e3f7e1417f6f.tar.xz |
Get rid of the unused multi-level loop crap in dmnsn_progress* objects.
Diffstat (limited to 'libdimension/png.c')
-rw-r--r-- | libdimension/png.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/png.c b/libdimension/png.c index 5fe51ed..9095178 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -198,7 +198,7 @@ dmnsn_png_write_canvas_thread(void *ptr) png_uint_32 width = payload->canvas->width; png_uint_32 height = payload->canvas->height; - dmnsn_new_progress_element(payload->progress, height); + dmnsn_set_progress_total(payload->progress, height); png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); @@ -398,7 +398,7 @@ dmnsn_png_read_canvas_thread(void *ptr) &interlace_type, &compression_type, &filter_method); int number_of_passes = png_set_interlace_handling(png_ptr); - dmnsn_new_progress_element(payload->progress, (number_of_passes + 1)*height); + dmnsn_set_progress_total(payload->progress, (number_of_passes + 1)*height); png_set_read_status_fn(png_ptr, &dmnsn_png_read_row_callback); /* |