mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-25 07:39:02 +00:00
sw_engine SwCommon: Change spans's x,y value type
The x and y of spans cannot be negative because they are specified as coordinates inside the buffer. Change the type to fix warnings and potential problems that occur in conversion between int16_t and uint32_t.
This commit is contained in:
parent
e36c2029ce
commit
d8797092b5
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ struct SwOutline
|
||||||
|
|
||||||
struct SwSpan
|
struct SwSpan
|
||||||
{
|
{
|
||||||
int16_t x, y;
|
uint16_t x, y;
|
||||||
uint16_t len;
|
uint16_t len;
|
||||||
uint8_t coverage;
|
uint8_t coverage;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue