Now progressive gif loading works! It's a little slow though. )-:

1999-11-02  Jonathan Blandford  <jrb@redhat.com>

	* src/io-gif.c (gif_main_loop): Now progressive gif loading works!
	It's a little slow though. )-:
This commit is contained in:
Jonathan Blandford
1999-11-02 23:49:22 +00:00
committed by Jonathan Blandford
parent 587d91caad
commit 53d5c49dbb
4 changed files with 333 additions and 144 deletions

View File

@ -520,7 +520,7 @@ main (int argc, char **argv)
int nbytes;
nbytes = fread(buf, 1, readlen, file);
printf(".");
/* printf(".");*/
fflush(stdout);
if (gdk_pixbuf_loader_write (GDK_PIXBUF_LOADER (pixbuf_loader), buf, nbytes) == FALSE)
@ -529,7 +529,7 @@ main (int argc, char **argv)
while (gtk_events_pending())
gtk_main_iteration();
}
printf("\n");
/* printf("\n");*/
gtk_timeout_remove (timeout);
gdk_pixbuf_loader_close (GDK_PIXBUF_LOADER (pixbuf_loader));
gtk_object_destroy (GTK_OBJECT(pixbuf_loader));