Fix 37589: strange dots next to Slashdot news headers. patch by Arne de Bruijn (arbruijn+mozilla@students.cs.uu.nl). r=pnunn sr=tor

This commit is contained in:
blakeross%telocity.com 2000-12-29 02:21:16 +00:00
parent e098abe57c
commit 00a634f220

View File

@ -888,6 +888,11 @@ il_gif_write(il_container *ic, const PRUint8 *buf, int32 len)
return MK_IMAGE_LOSSAGE;
}
}
status = gif_clear_screen(gs);
if (status < 0)
return status;
/* Initialize LZW parser/decoder */
gs->datasize = *q;
if(gs->datasize > MAX_LZW_BITS)
@ -1384,14 +1389,8 @@ il_gif_write(il_container *ic, const PRUint8 *buf, int32 len)
!(gs->interlaced && gs->is_transparent);
}
status = gif_clear_screen(gs);
if (status < 0)
return status;
/* Clear state from last image */
gs->requested_buffer_fullness = 0;
gs->control_extension = FALSE;
gs->is_transparent = FALSE;
gs->irow = 0;
gs->rows_remaining = gs->height;
gs->rowend = gs->rowbuf + gs->width;
@ -1503,6 +1502,10 @@ il_gif_write(il_container *ic, const PRUint8 *buf, int32 len)
gs->images_decoded++;
/* Clear state from this image */
gs->control_extension = FALSE;
gs->is_transparent = FALSE;
if(ic->animate_request == eImageAnimation_None){
/* This is not really an error, but a mechanism
to stop decoding of subsequent frames. Only the