mirror of https://github.com/GNOME/gimp.git
pulse the progress when loading an animation because we cannot tell
2006-04-05 Sven Neumann <sven@gimp.org> * plug-ins/common/gifload.c: pulse the progress when loading an animation because we cannot tell beforehand how many frames are to be loaded.
This commit is contained in:
parent
9ab9ad7651
commit
519a51f226
|
@ -1,3 +1,9 @@
|
|||
2006-04-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/gifload.c: pulse the progress when loading an
|
||||
animation because we cannot tell beforehand how many frames are to
|
||||
be loaded.
|
||||
|
||||
2006-04-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
|
||||
|
|
|
@ -892,9 +892,9 @@ ReadImage (FILE *fd,
|
|||
gimp_progress_set_text_printf (_("Opening '%s' (frame %d)"),
|
||||
gimp_filename_to_utf8 (filename),
|
||||
frame_number);
|
||||
gimp_progress_pulse ();
|
||||
|
||||
/* If the colourmap is now different, we have to promote to
|
||||
RGB! */
|
||||
/* If the colourmap is now different, we have to promote to RGB! */
|
||||
if (!promote_to_rgb)
|
||||
{
|
||||
for (i = 0; i < ncols; i++)
|
||||
|
@ -1075,10 +1075,14 @@ ReadImage (FILE *fd,
|
|||
ypos++;
|
||||
}
|
||||
|
||||
cur_progress++;
|
||||
if ((cur_progress % 16) == 0)
|
||||
gimp_progress_update ((double) cur_progress / (double) max_progress);
|
||||
}
|
||||
if (frame_number == 1)
|
||||
{
|
||||
cur_progress++;
|
||||
if ((cur_progress % 16) == 0)
|
||||
gimp_progress_update ((gdouble) cur_progress /
|
||||
(gdouble) max_progress);
|
||||
}
|
||||
}
|
||||
|
||||
if (ypos >= height)
|
||||
break;
|
||||
|
@ -1146,14 +1150,6 @@ typedef long int count_int;
|
|||
|
||||
|
||||
|
||||
int rowstride;
|
||||
guchar *pixels;
|
||||
int cur_progress;
|
||||
int max_progress;
|
||||
|
||||
|
||||
|
||||
|
||||
/* public */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue