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:
JunsuChoi 2021-12-01 15:07:54 +09:00 committed by JunsuChoi
parent e36c2029ce
commit d8797092b5

View file

@ -111,7 +111,7 @@ struct SwOutline
struct SwSpan
{
int16_t x, y;
uint16_t x, y;
uint16_t len;
uint8_t coverage;
};