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:
3f9382b
)
sw_engine rle: fixing clipping with non overlaping figures
author
Mira Grudzinska
<m.grudzinska@samsung.com>
Sat, 6 Feb 2021 23:01:49 +0000
(
00:01
+0100)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Fri, 19 Feb 2021 08:34:54 +0000
(17:34 +0900)
For clip that did not overlap with the plotted source, the whole
source was plotted - the size of the rle data was not updated.
src/lib/sw_engine/tvgSwRle.cpp
patch
|
blob
|
history
diff --git
a/src/lib/sw_engine/tvgSwRle.cpp
b/src/lib/sw_engine/tvgSwRle.cpp
index
352e42c
..
3255b6c
100644
(file)
--- a/
src/lib/sw_engine/tvgSwRle.cpp
+++ b/
src/lib/sw_engine/tvgSwRle.cpp
@@
-917,7
+917,12
@@
void rleFree(SwRleData* rle)
void updateRleSpans(SwRleData *rle, SwSpan* curSpans, uint32_t size)
{
- if (!rle->spans || !curSpans || size == 0) return;
+ if (size == 0) {
+ rle->size = 0;
+ return;
+ }
+
+ if (!rle->spans || !curSpans) return;
rle->size = size;
rle->spans = static_cast<SwSpan*>(realloc(rle->spans, rle->size * sizeof(SwSpan)));