Commit 763bc2d1 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

update the progress text to show the frame number when loading multi-frame

2006-04-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/gifload.c (ReadImage): update the progress text
	to show the frame number when loading multi-frame GIFs.
parent 17aada11
2006-04-04 Michael Natterer <mitch@gimp.org>
* plug-ins/common/gifload.c (ReadImage): update the progress text
to show the frame number when loading multi-frame GIFs.
2006-04-04 Michael Natterer <mitch@gimp.org>
* app/pdb/pdb-types.h
......
......@@ -842,7 +842,7 @@ ReadImage (FILE *fd,
return -1;
}
if (frame_number == 1 )
if (frame_number == 1)
{
/* Guard against bogus logical screen size values */
if (screenwidth == 0)
......@@ -889,18 +889,21 @@ ReadImage (FILE *fd,
}
else /* NOT FIRST FRAME */
{
gimp_progress_set_text_printf (_("Opening '%s' (frame %d)"),
gimp_filename_to_utf8 (filename),
frame_number);
/* If the colourmap is now different, we have to promote to
RGB! */
if (!promote_to_rgb)
{
for (i=0;i<ncols;i++)
for (i = 0; i < ncols; i++)
{
if (
(used_cmap[0][i] != cmap[0][i]) ||
if ((used_cmap[0][i] != cmap[0][i]) ||
(used_cmap[1][i] != cmap[1][i]) ||
(used_cmap[2][i] != cmap[2][i])
)
{ /* Everything is RGB(A) from now on... sigh. */
(used_cmap[2][i] != cmap[2][i]))
{
/* Everything is RGB(A) from now on... sigh. */
promote_to_rgb = TRUE;
/* Promote everything we have so far into RGB(A) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment