forked from old/legacy-imlib2
Don't ask me how this got out of sync....
SVN revision: 1857
This commit is contained in:
parent
3a0e190876
commit
97db38a997
|
@ -62,6 +62,7 @@ load(ImlibImage *im, progress_func *progress, char progress_granularity, char im
|
|||
}
|
||||
w = gif->Image.Width;
|
||||
h = gif->Image.Height;
|
||||
if (im->loader || immediate_load || progress) {
|
||||
rows = malloc(h * sizeof(GifRowType *));
|
||||
if (!rows) {
|
||||
DGifCloseFile(gif);
|
||||
|
@ -94,6 +95,7 @@ load(ImlibImage *im, progress_func *progress, char progress_granularity, char im
|
|||
DGifGetLine(gif, rows[i], w);
|
||||
}
|
||||
}
|
||||
}
|
||||
done = 1;
|
||||
} else if (rec == EXTENSION_RECORD_TYPE) {
|
||||
int ext_code;
|
||||
|
@ -154,10 +156,10 @@ load(ImlibImage *im, progress_func *progress, char progress_granularity, char im
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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