From d8797092b5ea7074aefd1e3fa1d201100de4222b Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Wed, 1 Dec 2021 15:07:54 +0900 Subject: [PATCH] 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. --- src/lib/sw_engine/tvgSwCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sw_engine/tvgSwCommon.h b/src/lib/sw_engine/tvgSwCommon.h index 87577f96..de4ca357 100644 --- a/src/lib/sw_engine/tvgSwCommon.h +++ b/src/lib/sw_engine/tvgSwCommon.h @@ -111,7 +111,7 @@ struct SwOutline struct SwSpan { - int16_t x, y; + uint16_t x, y; uint16_t len; uint8_t coverage; };