diff options
author | Marek Chalupa <mchqwerty@gmail.com> | 2014-10-29 14:51:22 +0100 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-11-19 15:39:36 +0200 |
commit | 0d7fe8d92574e8cc9ff2195cbade28bab50d1c8d (patch) | |
tree | aca48d8d8da183ee4695087000ccf1b4d524aebb /xwayland | |
parent | 95292f22f4bba332fb41340c7662fd92a49b0336 (diff) | |
download | weston-0d7fe8d92574e8cc9ff2195cbade28bab50d1c8d.tar.gz |
toytoolkit: rename tile_mask to render_shadow
This function is used and clearly designed only for drawing the shadows.
Rename it so that it has name after what it does and also move some
common code into the function.
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/window-manager.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 4977c243..4acb5343 100644 --- a/xwayland/window-manager.c +++ b/xwayland/window-manager.c @@ -973,9 +973,7 @@ weston_wm_window_draw_decoration(void *data) cairo_set_source_rgba(cr, 0, 0, 0, 0); cairo_paint(cr); - cairo_set_operator(cr, CAIRO_OPERATOR_OVER); - cairo_set_source_rgba(cr, 0, 0, 0, 0.45); - tile_mask(cr, t->shadow, 2, 2, width + 8, height + 8, 64, 64); + render_shadow(cr, t->shadow, 2, 2, width + 8, height + 8, 64, 64); } cairo_destroy(cr); |