Restore a GIF to the background colour.
651{
652 fl::size pixel_bytes = sizeof(*bitmap);
653
654 if (frame == nullptr) {
657
660 } else {
665
669 return;
670 }
671
674
677 fl::u32 *scanline = bitmap + offset_x +
680 width * pixel_bytes);
681 }
682 } else {
684 fl::u32 *scanline = bitmap + offset_x +
686 for (fl::u32
x = 0;
x <
width;
x++) {
688 }
689 }
690 }
691 }
692}
static fl::u32 gif__clip(fl::u32 frame_off, fl::u32 frame_dim, fl::u32 image_ext) FL_NOEXCEPT
Get any frame clip adjustment for the image extent.
nsgif_rect_t rect
Frame's redraw rectangle.
bool transparency
whether the frame may have transparency
bool display
whether the frame should be displayed/animated
fl::u32 background
background colour in same pixel format as nsgif_bitmap_t.
fl::u32 y0
y co-ordinate of redraw rectangle, top
fl::u32 width
width of GIF (may increase during decoding)
fl::u32 height
height of GIF (may increase during decoding)
fl::u32 x1
x co-ordinate of redraw rectangle, right
fl::u32 y1
y co-ordinate of redraw rectangle, bottom
fl::u32 x0
x co-ordinate of redraw rectangle, left
struct nsgif_frame_info info
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
#define NSGIF_TRANSPARENT_COLOUR
Transparent colour.