mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Use gsk_matrix_transform_point3d consistently
This commit is contained in:
parent
f10603e97d
commit
440d56a44f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user