mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 17:15:57 +00:00
sw_engine raster: code refactoring
clarfy & regroup the internal functions which have been messed up by rendering options. no logical changes
This commit is contained in:
parent
e581ae4353
commit
f9bc684699
2 changed files with 743 additions and 723 deletions
|
@ -280,11 +280,6 @@ static inline uint32_t COLOR_INTERPOLATE(uint32_t c1, uint32_t a1, uint32_t c2,
|
||||||
return (c1 |= t);
|
return (c1 |= t);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t ALPHA_MULTIPLY(uint32_t c, uint32_t a)
|
|
||||||
{
|
|
||||||
return ((c * a + 0xff) >> 8);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline SwCoord HALF_STROKE(float width)
|
static inline SwCoord HALF_STROKE(float width)
|
||||||
{
|
{
|
||||||
return TO_SWCOORD(width * 0.5f);
|
return TO_SWCOORD(width * 0.5f);
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue