mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine raster: ++strict types.
This commit is contained in:
parent
251c97b2d8
commit
0e86cfebba
1 changed files with 2 additions and 2 deletions
|
@ -256,8 +256,8 @@ static uint32_t _interpUpScaler(const uint32_t *img, TVG_UNUSED uint32_t stride,
|
|||
//OPTIMIZE_ME: Skip the function pointer access
|
||||
static uint32_t _interpDownScaler(const uint32_t *img, uint32_t stride, uint32_t w, uint32_t h, float sx, float sy, uint32_t n, uint32_t n2)
|
||||
{
|
||||
uint32_t rx = lround(sx);
|
||||
uint32_t ry = lround(sy);
|
||||
uint32_t rx = lroundf(sx);
|
||||
uint32_t ry = lroundf(sy);
|
||||
uint32_t c[4] = {0, 0, 0, 0};
|
||||
auto src = img + rx - n + (ry - n) * stride;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue