mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
sw_engine raster: remove the condition which is out of the genearal case.
This commit is contained in:
parent
fa17214633
commit
491ea0ac07
1 changed files with 0 additions and 2 deletions
|
@ -84,8 +84,6 @@ static uint32_t _interpUpScaler(const uint32_t *img, uint32_t w, uint32_t h, flo
|
|||
auto c3 = img[(rX + 1) + ((rY + 1) * w)];
|
||||
auto c4 = img[rX + ((rY + 1) * w)];
|
||||
|
||||
if (c1 == c2 && c1 == c3 && c1 == c4) return img[rX + (rY * w)];
|
||||
|
||||
return COLOR_INTERPOLATE(COLOR_INTERPOLATE(c1, 255 - dX, c2, dX), 255 - dY, COLOR_INTERPOLATE(c4, 255 - dX, c3, dX), dY);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue