mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 22:58:44 +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
|
||||
{
|
||||
int16_t x, y;
|
||||
uint16_t x, y;
|
||||
uint16_t len;
|
||||
uint8_t coverage;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue