Whoops. Forgot to call the progress callback one last time.

SVN revision: 1738
This commit is contained in:
Michael Jennings 1999-12-22 10:48:30 +00:00
parent 2a0b19880b
commit 638ac80157
1 changed files with 4 additions and 1 deletions

View File

@ -149,12 +149,15 @@ load(ImlibImage *im, progress_func *progress, char progress_granularity, char im
per += per_inc; per += per_inc;
if (progress && (((int) per) != last_per) && (((int) per) % progress_granularity == 0)) { if (progress && (((int) per) != last_per) && (((int) per) % progress_granularity == 0)) {
last_per = (int) per; last_per = (int) per;
progress(im, per, 0, last_y, w, i); progress(im, (int) per, 0, last_y, w, i);
last_y = i; last_y = i;
} }
} }
} }
} }
if (progress) {
progress(im, 100, 0, last_y, w, h);
}
DGifCloseFile(gif); DGifCloseFile(gif);
for (i = 0; i < h; i++) { for (i = 0; i < h; i++) {
free(rows[i]); free(rows[i]);