mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Fix blank pixel color for truncated GIFs
This commit is contained in:
parent
e03052f3d3
commit
82e68ebad1
1 changed files with 7 additions and 1 deletions
|
|
@ -212,10 +212,16 @@ nsGIFDecoder2::BeginImageFrame(const IntRect& aFrameRect,
|
|||
} else {
|
||||
// This is an animation frame (and not the first). To minimize the memory
|
||||
// usage of animations, the image data is stored in paletted form.
|
||||
//
|
||||
// We should never use paletted surfaces with a draw target directly, so
|
||||
// the only practical difference between B8G8R8A8 and B8G8R8X8 is the
|
||||
// cleared pixel value if we get truncated. We want 0 in that case to
|
||||
// ensure it is an acceptable value for the color map as was the case
|
||||
// historically.
|
||||
MOZ_ASSERT(Size() == OutputSize());
|
||||
pipe =
|
||||
SurfacePipeFactory::CreatePalettedSurfacePipe(this, Size(), aFrameRect,
|
||||
format,
|
||||
SurfaceFormat::B8G8R8A8,
|
||||
aDepth, Some(animParams),
|
||||
pipeFlags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue