sw_engine: fix one last compile warning.

casting to loss data in converting data type.

Change-Id: I4c9b45b1c015579807a2d44e0ff2734bd2f655f3
This commit is contained in:
Hermet Park 2020-08-06 20:17:34 +09:00
parent 4959db9c04
commit 7839c662d7

View file

@ -333,7 +333,7 @@ static void _inside(SwStroke& stroke, int32_t side, SwFixed lineLength)
//compute median angle
auto phi = stroke.angleIn + theta;
auto thcos = mathCos(theta);
delta = {mathDivide(stroke.width, thcos), 0};
delta = {static_cast<SwCoord>(mathDivide(stroke.width, thcos)), 0};
mathRotate(delta, phi + rotate);
SCALE(stroke, delta);
delta += stroke.center;