From 741ebefb25c029cfe81fa579a1920ce8836793d6 Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Sun, 11 Feb 2018 20:55:52 +0800 Subject: [PATCH] fixed the problem of non - standard code --- core/Node/Node.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/Node/Node.cpp b/core/Node/Node.cpp index 9830f427..99089c44 100644 --- a/core/Node/Node.cpp +++ b/core/Node/Node.cpp @@ -206,8 +206,7 @@ void e2d::Node::_updateTransform() getRealWidth() * m_fPivotX, getRealHeight() * m_fPivotY ); - D2D1_POINT_2F point = D2D1::Point2F(m_Pos.x, m_Pos.y); - // 初步的二维矩形变换,子节点将根据这个矩阵进行变换 + // 变换 Initial 矩阵,子节点将根据这个矩阵进行变换 m_MatriInitial = D2D1::Matrix3x2F::Scale( m_fScaleX, m_fScaleY, @@ -223,7 +222,7 @@ void e2d::Node::_updateTransform() m_Pos.x, m_Pos.y ); - // 根据自身中心点做最终变换 + // 根据自身中心点变换 Final 矩阵 m_MatriFinal = m_MatriInitial * D2D1::Matrix3x2F::Translation(-pivot.x, -pivot.y); // 和父节点矩阵相乘 if (m_pParent)