st: Adapt to paint node changes
See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4160 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3569>
This commit is contained in:
parent
3bc2ab6ba9
commit
572fe52f94
@ -2516,23 +2516,23 @@ st_theme_node_prerender_shadow (StThemeNodePaintState *state,
|
|||||||
state->resource_scale,
|
state->resource_scale,
|
||||||
state->resource_scale, 1);
|
state->resource_scale, 1);
|
||||||
|
|
||||||
|
color_state = clutter_paint_context_get_color_state (paint_context);
|
||||||
|
|
||||||
cogl_color_init_from_4f (&clear_color, 0, 0, 0, 0);
|
cogl_color_init_from_4f (&clear_color, 0, 0, 0, 0);
|
||||||
root_node = clutter_root_node_new (framebuffer,
|
root_node = clutter_root_node_new (framebuffer,
|
||||||
|
color_state,
|
||||||
&clear_color,
|
&clear_color,
|
||||||
COGL_BUFFER_BIT_COLOR);
|
COGL_BUFFER_BIT_COLOR);
|
||||||
|
|
||||||
st_theme_node_paint_borders (state, root_node, &box,
|
st_theme_node_paint_borders (state, root_node, &box,
|
||||||
ST_PAINT_BORDERS_MODE_SILHOUETTE, 0xff);
|
ST_PAINT_BORDERS_MODE_SILHOUETTE, 0xff);
|
||||||
|
|
||||||
color_state = clutter_paint_context_get_color_state (paint_context);
|
|
||||||
nested_paint_context =
|
nested_paint_context =
|
||||||
clutter_paint_context_new_for_framebuffer (framebuffer,
|
clutter_paint_context_new_for_framebuffer (framebuffer,
|
||||||
NULL,
|
NULL,
|
||||||
CLUTTER_PAINT_FLAG_NONE,
|
CLUTTER_PAINT_FLAG_NONE,
|
||||||
color_state);
|
color_state);
|
||||||
clutter_paint_context_push_color_state (nested_paint_context, color_state);
|
|
||||||
clutter_paint_node_paint (root_node, nested_paint_context);
|
clutter_paint_node_paint (root_node, nested_paint_context);
|
||||||
clutter_paint_context_pop_color_state (nested_paint_context);
|
|
||||||
clutter_paint_context_destroy (nested_paint_context);
|
clutter_paint_context_destroy (nested_paint_context);
|
||||||
|
|
||||||
state->box_shadow_pipeline = _st_create_shadow_pipeline (st_theme_node_get_box_shadow (node),
|
state->box_shadow_pipeline = _st_create_shadow_pipeline (st_theme_node_get_box_shadow (node),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user