From defa167f29a2fb4b492b0f55c9ae87be4effe38c Mon Sep 17 00:00:00 2001 From: Roman Sorokin Date: Fri, 25 Jul 2014 18:17:09 +0300 Subject: [PATCH] fixed xOffset --- drape_frontend/text_shape.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drape_frontend/text_shape.cpp b/drape_frontend/text_shape.cpp index 380b43c65e..ffe35489ef 100644 --- a/drape_frontend/text_shape.cpp +++ b/drape_frontend/text_shape.cpp @@ -155,10 +155,10 @@ void TextShape::AddGeometryWithTheSameTextureSet(int setNum, int letterCount, bo yOffset *= aspect; xOffset *= aspect; - PointF const leftBottom(stride - xOffset + anchorDelta.x, yOffset + anchorDelta.y); - PointF const rightBottom(stride + w - xOffset + anchorDelta.x, yOffset + anchorDelta.y); - PointF const leftTop(stride - xOffset + anchorDelta.x, yOffset + h + anchorDelta.y); - PointF const rightTop(stride + w - xOffset + anchorDelta.x, yOffset + h + anchorDelta.y); + PointF const leftBottom(stride + xOffset + anchorDelta.x, yOffset + anchorDelta.y); + PointF const rightBottom(stride + w + xOffset + anchorDelta.x, yOffset + anchorDelta.y); + PointF const leftTop(stride + xOffset + anchorDelta.x, yOffset + h + anchorDelta.y); + PointF const rightTop(stride + w + xOffset + anchorDelta.x, yOffset + h + anchorDelta.y); int index = j * 4; vertex[index++] = Vertex(m_basePoint, leftTop);