From cb12430633b51845a32695d8281717a0354ce089 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 31 Dec 2018 08:14:21 +0000 Subject: [PATCH] Use options_t::shadow_radius for shadow size calculation No need to access gaussian_map Signed-off-by: Yuxuan Shui --- src/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win.c b/src/win.c index 6425c46..db1d50b 100644 --- a/src/win.c +++ b/src/win.c @@ -598,8 +598,8 @@ void calc_win_size(session_t *ps, win *w) { void calc_shadow_geometry(session_t *ps, win *w) { w->shadow_dx = ps->o.shadow_offset_x; w->shadow_dy = ps->o.shadow_offset_y; - w->shadow_width = w->widthb + ps->gaussian_map->size; - w->shadow_height = w->heightb + ps->gaussian_map->size; + w->shadow_width = w->widthb + ps->o.shadow_radius * 2; + w->shadow_height = w->heightb + ps->o.shadow_radius * 2; } /**