mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00
sw_engine: fix one last compile warning.
casting to loss data in converting data type. Change-Id: I4c9b45b1c015579807a2d44e0ff2734bd2f655f3
This commit is contained in:
parent
4959db9c04
commit
7839c662d7
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ static void _inside(SwStroke& stroke, int32_t side, SwFixed lineLength)
|
||||||
//compute median angle
|
//compute median angle
|
||||||
auto phi = stroke.angleIn + theta;
|
auto phi = stroke.angleIn + theta;
|
||||||
auto thcos = mathCos(theta);
|
auto thcos = mathCos(theta);
|
||||||
delta = {mathDivide(stroke.width, thcos), 0};
|
delta = {static_cast<SwCoord>(mathDivide(stroke.width, thcos)), 0};
|
||||||
mathRotate(delta, phi + rotate);
|
mathRotate(delta, phi + rotate);
|
||||||
SCALE(stroke, delta);
|
SCALE(stroke, delta);
|
||||||
delta += stroke.center;
|
delta += stroke.center;
|
||||||
|
|
Loading…
Add table
Reference in a new issue