Skip to content

Commit

Permalink
Fix left click selected wrong object when canvas was rotated
Browse files Browse the repository at this point in the history
  • Loading branch information
fdwr committed Aug 6, 2022
1 parent f42d7b6 commit 18284d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/DrawingCanvas.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ float GetDeterminant(_In_ DX_MATRIX_3X2F const& matrix)
D2D_POINT_2F TransformPoint(DX_MATRIX_3X2F const& matrix, D2D_POINT_2F point)
{
return {
point.x * matrix.xx + point.x * matrix.yx + matrix.dx,
point.y * matrix.yy + point.y * matrix.xy + matrix.dy
point.x * matrix.xx + point.y * matrix.yx + matrix.dx,
point.y * matrix.yy + point.x * matrix.xy + matrix.dy
};
}

Expand Down

0 comments on commit 18284d4

Please sign in to comment.