提交 7913c878 编写于 作者: O openharmony_ci 提交者: Gitee

!455 修复二维scale变换中心点失效问题

Merge pull request !455 from JayLeeHW/rotate_master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册