fix 2x2 component transform

This commit is contained in:
Michiharu Ariza 2019-04-02 17:02:11 -07:00
parent 8801b80d72
commit 27d3bac8ef
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ struct contour_point_vector_t : hb_vector_t<contour_point_t>
for (unsigned int i = 0; i < length; i++) for (unsigned int i = 0; i < length; i++)
{ {
contour_point_t &p = (*this)[i]; contour_point_t &p = (*this)[i];
float x_ = p.x * matrix[0] + p.y * matrix[1]; float x_ = p.x * matrix[0] + p.y * matrix[2];
p.y = p.x * matrix[2] + p.y * matrix[3]; p.y = p.x * matrix[1] + p.y * matrix[3];
p.x = x_; p.x = x_;
} }
} }