Use gsk_matrix_transform_point3d consistently

This commit is contained in:
Matthias Clasen 2023-05-10 13:44:24 -04:00
parent f10603e97d
commit 440d56a44f

View File

@ -10239,8 +10239,8 @@ gtk_widget_do_pick (GtkWidget *widget,
gsk_transform_unref (transform);
graphene_point3d_init (&p0, x, y, 0);
graphene_point3d_init (&p1, x, y, 1);
graphene_matrix_transform_point3d (&inv, &p0, &p0);
graphene_matrix_transform_point3d (&inv, &p1, &p1);
gsk_matrix_transform_point3d (&inv, &p0, &p0);
gsk_matrix_transform_point3d (&inv, &p1, &p1);
if (fabs (p0.z - p1.z) < 1.f / 4096)
continue;