From fb36ccee498d95f662c157b5762277a4ab55f72d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Mar 2008 13:40:59 +0100 Subject: [PATCH] [styles] Set shadow_offset to 0 by default Signed-off-by: Julien Danjou --- common/draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/draw.c b/common/draw.c index 162d0ae1..a297b63d 100644 --- a/common/draw.c +++ b/common/draw.c @@ -869,6 +869,8 @@ draw_style_init(Display *disp, int phys_screen, cfg_t *cfg, if((shadow = cfg_getint(cfg, "shadow_offset")) != (int) 0xffffffff) c->shadow_offset = shadow; + else if(!m) + c->shadow_offset = 0; } /** Remove a area from a list of them,