projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc58da3
)
sw_engine SwCommon: Change spans's x,y value type
author
JunsuChoi
<jsuya.choi@samsung.com>
Wed, 1 Dec 2021 06:07:54 +0000
(15:07 +0900)
committer
JunsuChoi
<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
patch
|
blob
|
history
diff --git
a/src/lib/sw_engine/tvgSwCommon.h
b/src/lib/sw_engine/tvgSwCommon.h
index
87577f9
..
de4ca35
100644
(file)
--- 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;
+
u
int16_t x, y;
uint16_t len;
uint8_t coverage;
};