[metacity] compositor-xrender: remove unused parameters from shadow_picture



commit e944c77e505306615e7eb35c3f4c47375a82ec3b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Oct 22 23:31:20 2019 +0300

    compositor-xrender: remove unused parameters from shadow_picture

 src/compositor/meta-compositor-xrender.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 354b608b..51063ca9 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -472,10 +472,8 @@ cairo_region_to_xserver_region (Display        *xdisplay,
 
 static Picture
 shadow_picture (MetaCompositorXRender *xrender,
-                MetaCompWindow        *cw,
                 MetaShadowType         shadow_type,
                 double                 opacity,
-                MetaFrameBorders       borders,
                 int                    width,
                 int                    height,
                 int                   *wp,
@@ -793,7 +791,7 @@ get_shadow_region (MetaCompositorXRender *xrender,
       if (cw->window->opacity != (guint) OPAQUE)
         opacity = opacity * ((double) cw->window->opacity) / ((double) OPAQUE);
 
-      cw->shadow = shadow_picture (xrender, cw, shadow_type, opacity, borders,
+      cw->shadow = shadow_picture (xrender, shadow_type, opacity,
                                    cw->rect.width - invisible_width,
                                    cw->rect.height - invisible_height,
                                    &cw->shadow_width, &cw->shadow_height);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]