Refactored img_load_gif()

- Corrected handling of transparency settings for individual frames
- Corrected handling of different frame dimensions & offsets
This commit is contained in:
Bert
2011-08-17 18:01:21 +02:00
parent 86a6f00112
commit 79bd86defb
3 changed files with 62 additions and 40 deletions

2
main.c
View File

@ -158,7 +158,7 @@ void update_title() {
n = snprintf(win_title, TITLE_LEN,
"sxiv: [%d/%d] <%d%%> <%dx%d> (%.2f%s) {%d/%d} %s",
fileidx + 1, filecnt, (int) (img.zoom * 100.0), img.w,
img.h, size, unit, img.multi.cur + 1, img.multi.cnt,
img.h, size, unit, img.multi.sel + 1, img.multi.cnt,
files[fileidx].name);
else
n = snprintf(win_title, TITLE_LEN,