提交 62428d00 编写于 作者: L liqiang

fix scale pivot invalid bug

Signed-off-by: Nliqiang <liqiang121@huawei.com>
Change-Id: I5f917b69ecc84f39284925cabf05651409c8807b
上级 6e9c22d9
......@@ -273,7 +273,7 @@ void UIView::Rotate(int16_t angle, const Vector3<float>& pivotStart, const Vecto
void UIView::Scale(const Vector2<float>& scale, const Vector2<float>& pivot)
{
Vector3<float> scale3D = Vector3<float>(scale.x_, scale.y_, 1.0f);
Vector3<float> pivot3D = Vector3<float>(scale.x_, scale.y_, 0);
Vector3<float> pivot3D = Vector3<float>(pivot.x_, pivot.y_, 0);
Scale(scale3D, pivot3D);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册