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:
0c2aeb1
)
sw_engine renderer: fix wrong conditional check.
author
Hermet Park
<chuneon.park@samsung.com>
Tue, 22 Dec 2020 02:09:48 +0000
(11:09 +0900)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Wed, 23 Dec 2020 01:29:12 +0000
(10:29 +0900)
unsigned int won't be less than 0.
Change-Id: Ib9462f2d11168d794e93a66ea052c1fb6e05ebd5
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
6b234fd
..
de76176
100644
(file)
--- a/
src/lib/sw_engine/tvgSwRenderer.cpp
+++ b/
src/lib/sw_engine/tvgSwRenderer.cpp
@@
-334,8
+334,6
@@
void* SwRenderer::beginComposite(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
comp->valid = false;
//Boundary Check
- if (x < 0) x = 0;
- if (y < 0) y = 0;
if (x + w > surface->w) w = (surface->w - x);
if (y + h > surface->h) h = (surface->h - y);