Don't ask me how this got out of sync....

SVN revision: 1857
This commit is contained in:
Michael Jennings 2000-01-05 14:28:49 +00:00
parent 3a0e190876
commit 97db38a997
1 changed files with 30 additions and 28 deletions

View File

@ -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]);