mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine fill: fixing the infinite loop condition
Fixed in the fillFetchLinear() function.
This commit is contained in:
parent
d03db583e5
commit
07e6c476a8
1 changed files with 2 additions and 1 deletions
|
@ -257,7 +257,8 @@ void fillFetchLinear(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x,
|
||||||
}
|
}
|
||||||
//we have to fallback to float math
|
//we have to fallback to float math
|
||||||
} else {
|
} else {
|
||||||
while (dst < dst + len) {
|
uint32_t counter = 0;
|
||||||
|
while (counter++ < len) {
|
||||||
*dst = _pixel(fill, t / GRADIENT_STOP_SIZE);
|
*dst = _pixel(fill, t / GRADIENT_STOP_SIZE);
|
||||||
++dst;
|
++dst;
|
||||||
t += inc;
|
t += inc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue