diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-10-22 23:31:20 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-10-22 23:31:20 +0300 |
commit | e944c77e505306615e7eb35c3f4c47375a82ec3b (patch) | |
tree | 12599d602eb0c378f8af2f9245bbaeec3f8babff /src/compositor | |
parent | 66afc4b1920cbcadf31eb1412fbaf42add710446 (diff) | |
download | metacity-e944c77e505306615e7eb35c3f4c47375a82ec3b.tar.gz |
compositor-xrender: remove unused parameters from shadow_picture
Diffstat (limited to 'src/compositor')
-rw-r--r-- | src/compositor/meta-compositor-xrender.c | 4 |
1 files changed, 1 insertions, 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); |