forked from AuroraMiddleware/gtk
Fix gtk_widget_compute_transform
We were collecting all the transforms from widget up to ancestor, and then trying to collect the ones from target to ancestor, but failing.
This commit is contained in:
parent
9a8082bab2
commit
93b47c12d7
@ -11283,7 +11283,7 @@ gtk_widget_compute_transform (GtkWidget *widget,
|
|||||||
graphene_matrix_t inv;
|
graphene_matrix_t inv;
|
||||||
|
|
||||||
graphene_matrix_init_identity (&down_transform);
|
graphene_matrix_init_identity (&down_transform);
|
||||||
|
parent = target;
|
||||||
while (parent != ancestor)
|
while (parent != ancestor)
|
||||||
{
|
{
|
||||||
graphene_matrix_multiply (&down_transform, &parent->priv->transform, &down_transform);
|
graphene_matrix_multiply (&down_transform, &parent->priv->transform, &down_transform);
|
||||||
|
Loading…
Reference in New Issue
Block a user