From 80a5b55a7afff697ddb53afb13b583d3253520a2 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 6 Jul 2020 10:38:04 -0300 Subject: [PATCH] shell: Adapt to ClutterEffect vfunc changes Add the new ClutterPaintNode argument to the vfuncs. No other change is needed. Part-of: --- src/shell-glsl-effect.c | 3 ++- src/shell-invert-lightness-effect.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shell-glsl-effect.c b/src/shell-glsl-effect.c index 599aa52ed..b7d39bd7b 100644 --- a/src/shell-glsl-effect.c +++ b/src/shell-glsl-effect.c @@ -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 * diff --git a/src/shell-invert-lightness-effect.c b/src/shell-invert-lightness-effect.c index f1b27a651..c9521ea49 100644 --- a/src/shell-invert-lightness-effect.c +++ b/src/shell-invert-lightness-effect.c @@ -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 *