particle/module: pass a cairo context to all begin_expose()

This commit is contained in:
Daniel Eklöf 2019-02-28 20:10:26 +01:00
parent 35e9d0e25c
commit ea38ab3b2f
10 changed files with 16 additions and 16 deletions

View file

@ -30,13 +30,13 @@ exposable_destroy(struct exposable *exposable)
}
static int
begin_expose(struct exposable *exposable)
begin_expose(struct exposable *exposable, cairo_t *cr)
{
struct eprivate *e = exposable->private;
exposable->width = (
exposable->particle->left_margin +
e->exposable->begin_expose(e->exposable) +
e->exposable->begin_expose(e->exposable, cr) +
exposable->particle->right_margin);
return exposable->width;