sw_engine renderer: fix wrong conditional check.

unsigned int won't be less than 0.
This commit is contained in:
Hermet Park 2020-12-22 11:09:48 +09:00
parent e737ee4a4f
commit ac43ec591e

View 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);