sw_engine renderer: fix wrong conditional check.
authorHermet Park <chuneon.park@samsung.com>
Tue, 22 Dec 2020 02:09:48 +0000 (11:09 +0900)
committerJunsuChoi <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

index 6b234fd..de76176 100644 (file)
@@ -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);