forked from old/legacy-imlib2
Whoops. Forgot to call the progress callback one last time.
SVN revision: 1738
This commit is contained in:
parent
2a0b19880b
commit
638ac80157
|
@ -149,12 +149,15 @@ load(ImlibImage *im, progress_func *progress, char progress_granularity, char im
|
|||
per += per_inc;
|
||||
if (progress && (((int) per) != last_per) && (((int) per) % progress_granularity == 0)) {
|
||||
last_per = (int) per;
|
||||
progress(im, per, 0, last_y, w, i);
|
||||
progress(im, (int) per, 0, last_y, w, i);
|
||||
last_y = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (progress) {
|
||||
progress(im, 100, 0, last_y, w, h);
|
||||
}
|
||||
DGifCloseFile(gif);
|
||||
for (i = 0; i < h; i++) {
|
||||
free(rows[i]);
|
||||
|
|
Loading…
Reference in New Issue