forked from external/yambar
particle/module: pass a cairo context to all begin_expose()
This commit is contained in:
parent
35e9d0e25c
commit
ea38ab3b2f
10 changed files with 16 additions and 16 deletions
|
@ -54,7 +54,7 @@ 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;
|
||||
|
||||
|
@ -64,7 +64,7 @@ begin_expose(struct exposable *exposable)
|
|||
|
||||
/* Sub-exposables */
|
||||
for (size_t i = 0; i < e->count; i++)
|
||||
exposable->width += e->exposables[i]->begin_expose(e->exposables[i]);
|
||||
exposable->width += e->exposables[i]->begin_expose(e->exposables[i], cr);
|
||||
|
||||
return exposable->width;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue