shell: Adapt to ClutterEffect vfunc changes
Add the new ClutterPaintNode argument to the vfuncs. No other change is needed. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1350
This commit is contained in:
parent
e8fc6a8919
commit
16b14059b6
@ -24,6 +24,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (ShellGLSLEffect, shell_glsl_effect, CLUTTER_TYPE_OFF
|
||||
|
||||
static gboolean
|
||||
shell_glsl_effect_pre_paint (ClutterEffect *effect,
|
||||
ClutterPaintNode *node,
|
||||
ClutterPaintContext *paint_context)
|
||||
{
|
||||
ClutterEffectClass *parent_class;
|
||||
@ -41,7 +42,7 @@ shell_glsl_effect_pre_paint (ClutterEffect *effect,
|
||||
}
|
||||
|
||||
parent_class = CLUTTER_EFFECT_CLASS (shell_glsl_effect_parent_class);
|
||||
return parent_class->pre_paint (effect, paint_context);
|
||||
return parent_class->pre_paint (effect, node, paint_context);
|
||||
}
|
||||
|
||||
static CoglPipeline *
|
||||
|
@ -74,6 +74,7 @@ G_DEFINE_TYPE (ShellInvertLightnessEffect,
|
||||
|
||||
static gboolean
|
||||
shell_invert_lightness_effect_pre_paint (ClutterEffect *effect,
|
||||
ClutterPaintNode *node,
|
||||
ClutterPaintContext *paint_context)
|
||||
{
|
||||
ShellInvertLightnessEffect *self = SHELL_INVERT_LIGHTNESS_EFFECT (effect);
|
||||
@ -94,7 +95,7 @@ shell_invert_lightness_effect_pre_paint (ClutterEffect *effect,
|
||||
parent_class =
|
||||
CLUTTER_EFFECT_CLASS (shell_invert_lightness_effect_parent_class);
|
||||
|
||||
return parent_class->pre_paint (effect, paint_context);
|
||||
return parent_class->pre_paint (effect, node, paint_context);
|
||||
}
|
||||
|
||||
static CoglPipeline *
|
||||
|
Loading…
Reference in New Issue
Block a user