summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 18:08:15 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 18:08:15 -0300
commit71d2312487fed19d2500357cb644c3801179f600 (patch)
tree70510dcfbc9abb3376306492b89845333fc2865b /gui/render.c
parent279ddbdb4fb11dbffb487db05b74787b5275b4d9 (diff)
downloadeeshow-71d2312487fed19d2500357cb644c3801179f600.tar.gz
eeshow-71d2312487fed19d2500357cb644c3801179f600.tar.bz2
eeshow-71d2312487fed19d2500357cb644c3801179f600.zip
separate argument list from gfx_init; related API changes
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/render.c b/gui/render.c
index a5eb8e4..2411fd6 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -250,9 +250,7 @@ static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
void render_sheet(struct gui_sheet *sheet)
{
- char *argv[] = { "gui", NULL };
-
- sheet->gfx = gfx_init(&cro_canvas_ops, 1, argv);
+ sheet->gfx = gfx_init(&cro_canvas_ops);
if (sheet->hist && sheet->hist->pl) /* @@@ no pl_render for delta */
pl_render(sheet->hist->pl, sheet->gfx,
sheet->hist->sch_ctx.sheets, sheet->sch);
@@ -260,7 +258,7 @@ void render_sheet(struct gui_sheet *sheet)
cro_canvas_end(gfx_user(sheet->gfx),
&sheet->w, &sheet->h, &sheet->xmin, &sheet->ymin);
- sheet->gfx_extra = gfx_init(&cro_canvas_ops, 1, argv);
+ sheet->gfx_extra = gfx_init(&cro_canvas_ops);
sch_render_extra(sheet->sch, sheet->gfx_extra);
cro_canvas_end(gfx_user(sheet->gfx_extra), NULL, NULL, NULL, NULL);