mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine renderer: fix wrong conditional check.
unsigned int won't be less than 0.
This commit is contained in:
parent
e737ee4a4f
commit
ac43ec591e
1 changed files with 0 additions and 2 deletions
|
@ -334,8 +334,6 @@ void* SwRenderer::beginComposite(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
|
||||||
comp->valid = false;
|
comp->valid = false;
|
||||||
|
|
||||||
//Boundary Check
|
//Boundary Check
|
||||||
if (x < 0) x = 0;
|
|
||||||
if (y < 0) y = 0;
|
|
||||||
if (x + w > surface->w) w = (surface->w - x);
|
if (x + w > surface->w) w = (surface->w - x);
|
||||||
if (y + h > surface->h) h = (surface->h - y);
|
if (y + h > surface->h) h = (surface->h - y);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue