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:
4ff29e7
)
sw_engine: the check if the stroke width > 0 after conversion its value from float...
author
Mira Grudzinska
<m.grudzinska@samsung.com>
Tue, 8 Sep 2020 13:30:41 +0000
(15:30 +0200)
committer
Hermet Park
<chuneon.park@samsung.com>
Thu, 10 Sep 2020 06:34:11 +0000
(15:34 +0900)
During stroke width interpolation, if the width value after conversion
to long was 0, the bbox size was undefined.
Change-Id: I9425b9c16665bdb8346bd00092f73c109cbf9fb9
src/lib/sw_engine/tvgSwRenderer.cpp
patch
|
blob
|
history
diff --git
a/src/lib/sw_engine/tvgSwRenderer.cpp
b/src/lib/sw_engine/tvgSwRenderer.cpp
index
07926b4
..
7a69038
100644
(file)
--- a/
src/lib/sw_engine/tvgSwRenderer.cpp
+++ b/
src/lib/sw_engine/tvgSwRenderer.cpp
@@
-41,7
+41,7
@@
struct SwTask : Task
//Valid Stroking?
uint8_t strokeAlpha = 0;
auto strokeWidth = sdata->strokeWidth();
- if (
strokeWidth > FLT_EPSILON
) {
+ if (
TO_SWCOORD(strokeWidth * 0.5) > 0
) {
sdata->strokeColor(nullptr, nullptr, nullptr, &strokeAlpha);
}