forked from external/yambar
particle: add utility function to render a particle's decoration
This commit is contained in:
parent
6f5572ff6b
commit
22507ae26c
8 changed files with 21 additions and 20 deletions
|
@ -56,9 +56,7 @@ expose(const struct exposable *exposable, cairo_t *cr, int x, int y, int height)
|
|||
{
|
||||
const struct eprivate *e = exposable->private;
|
||||
|
||||
const struct deco *deco = exposable->particle->deco;
|
||||
if (deco != NULL)
|
||||
deco->expose(deco, cr, x, y, exposable->width, height);
|
||||
exposable_render_deco(exposable, cr, x, y, height);
|
||||
|
||||
int left_margin = exposable->particle->left_margin;
|
||||
int left_spacing = e->left_spacing;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue