[styles] Use 0xffffffff as auto value for shadow (FS#117)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ff1bd31633
commit
18117e8495
|
@ -167,7 +167,7 @@ cfg_opt_t style_opts[] =
|
|||
/** Shadow color. */
|
||||
CFG_STR((char *) "shadow", NULL, CFGF_NONE),
|
||||
/** Shadow offset in pixel. */
|
||||
CFG_INT((char *) "shadow_offset", 0, CFGF_NONE),
|
||||
CFG_INT((char *) "shadow_offset", 0xffffffff, CFGF_NONE),
|
||||
/** Font being used */
|
||||
CFG_STR((char *) "font", NULL, CFGF_NONE),
|
||||
CFG_AWESOME_END()
|
||||
|
|
|
@ -844,6 +844,7 @@ draw_style_init(Display *disp, int phys_screen, cfg_t *cfg,
|
|||
style_t *c, style_t *m)
|
||||
{
|
||||
char *buf;
|
||||
int shadow;
|
||||
|
||||
if(m)
|
||||
*c = *m;
|
||||
|
@ -866,7 +867,8 @@ draw_style_init(Display *disp, int phys_screen, cfg_t *cfg,
|
|||
draw_color_new(disp, phys_screen,
|
||||
cfg_getstr(cfg, "shadow"), &c->shadow);
|
||||
|
||||
c->shadow_offset = cfg_getint(cfg, "shadow_offset");
|
||||
if((shadow = cfg_getint(cfg, "shadow_offset")) != (int) 0xffffffff)
|
||||
c->shadow_offset = shadow;
|
||||
}
|
||||
|
||||
/** Remove a area from a list of them,
|
||||
|
|
Loading…
Reference in New Issue