[project @ 2004-05-31 21:51:35 by rjw]

History window shows the last frame of GIFs with a finite loop count, the first frame otherwise.

svn path=/import/netsurf/; revision=905
This commit is contained in:
Richard Wilson 2004-05-31 21:51:35 +00:00
parent b1cfda278c
commit 3f39cf8d42

View File

@ -108,10 +108,14 @@ void nsgif_redraw(struct content *c, long x, long y,
if (ro_gui_current_redraw_gui->option_animate_images) {
current_frame = c->data.gif.current_frame;
} else {
current_frame = 0;
current_frame = 0;
}
} else {
current_frame = 0;
if (c->data.gif.gif->loop_count == 0) {
current_frame = 0;
} else {
current_frame = c->data.gif.gif->frame_count - 1;
}
tinct_options = (option_filter_sprites?(1<<1):0) |
(option_dither_sprites?(1<<2):0);
}