sw_engine SwCommon: Change spans's x,y value type
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 1 Dec 2021 06:07:54 +0000 (15:07 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 1 Dec 2021 07:51:22 +0000 (16:51 +0900)
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

index 87577f9..de4ca35 100644 (file)
@@ -111,7 +111,7 @@ struct SwOutline
 
 struct SwSpan
 {
-    int16_t x, y;
+    uint16_t x, y;
     uint16_t len;
     uint8_t coverage;
 };