FastLED 3.9.15
Loading...
Searching...
No Matches

◆ nsgif__redraw_rect_extend()

static void fl::third_party::nsgif__redraw_rect_extend ( const nsgif_rect_t * frame,
nsgif_rect_t * redraw )
static

Definition at line 1797 of file gif.cpp.hpp.

1800{
1801 if (redraw->x1 == 0 || redraw->y1 == 0) {
1802 *redraw = *frame;
1803 } else {
1804 if (redraw->x0 > frame->x0) {
1805 redraw->x0 = frame->x0;
1806 }
1807 if (redraw->x1 < frame->x1) {
1808 redraw->x1 = frame->x1;
1809 }
1810 if (redraw->y0 > frame->y0) {
1811 redraw->y0 = frame->y0;
1812 }
1813 if (redraw->y1 < frame->y1) {
1814 redraw->y1 = frame->y1;
1815 }
1816 }
1817}
fl::u32 y0
y co-ordinate of redraw rectangle, top
Definition nsgif.hpp:48
fl::u32 x1
x co-ordinate of redraw rectangle, right
Definition nsgif.hpp:50
fl::u32 y1
y co-ordinate of redraw rectangle, bottom
Definition nsgif.hpp:52
fl::u32 x0
x co-ordinate of redraw rectangle, left
Definition nsgif.hpp:46

References FL_NOEXCEPT.

Referenced by nsgif_frame_prepare().

+ Here is the caller graph for this function: