mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
testsuite: Replay shadow nodes properly
Use the new apis for this.
This commit is contained in:
parent
ff02665407
commit
92c119e12c
@ -219,10 +219,10 @@ replay_shadow_node (GskRenderNode *node, GtkSnapshot *snapshot)
|
||||
{
|
||||
gsize n_shadows = gsk_shadow_node_get_n_shadows (node);
|
||||
/* Hack: we know GskShadowNode stores shadows in a contiguous array. */
|
||||
const GskShadow *shadow = gsk_shadow_node_get_shadow (node, 0);
|
||||
const GskShadow2 *shadow = gsk_shadow_node_get_shadow2 (node, 0);
|
||||
GskRenderNode *child = gsk_shadow_node_get_child (node);
|
||||
|
||||
gtk_snapshot_push_shadow (snapshot, shadow, n_shadows);
|
||||
gtk_snapshot_push_shadow2 (snapshot, shadow, n_shadows);
|
||||
replay_node (child, snapshot);
|
||||
gtk_snapshot_pop (snapshot);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user