Fixed UV mapping in route rendering

This commit is contained in:
r.kuznetsov 2015-08-11 15:15:38 +03:00 committed by Alex Zolotarev
parent 3d8126cdf5
commit 0c68002f19

View file

@ -278,7 +278,6 @@ double GenerateGeometry(vector<m2::PointD> const & points, bool isRoute, double
else
{
float const arrowTailEndCoord = arrowTailSize;
float const arrowBodyEndCoord = arrowTailEndCoord + arrowTailSize;
float const arrowHeadStartCoord = 1.0 - arrowHeadSize;
if (i == 0)
{
@ -292,8 +291,8 @@ double GenerateGeometry(vector<m2::PointD> const & points, bool isRoute, double
}
else
{
scaledLength = arrowTailEndCoord;
scaledEndLength = arrowBodyEndCoord;
scaledLength = arrowTailEndCoord + arrowTailSize;
scaledEndLength = arrowTailEndCoord + arrowTailSize * 2;
}
}