diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-03-30 23:57:15 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-03-30 23:57:15 +0200 |
commit | 57510a5330b09cd701bb0bb4cbbeca1d6d096737 (patch) | |
tree | a393a3f54a494156cb17a892354f539bc0087c10 /src/render.c | |
parent | 65446ad85962bc79620026d50d8ad26954ced041 (diff) |
Do all rendering one level higher
All rendering functions now render the contents of the given block, not
the block itself. This makes everything consistent again with respect
to where the frame SCBlock pointers point, even for the top frame.
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render.c b/src/render.c index f1ff019..103194e 100644 --- a/src/render.c +++ b/src/render.c @@ -215,7 +215,7 @@ struct frame *interp_and_shape(SCBlock *scblocks, SCBlock **stylesheets, top->col[2] = sc_interp_get_fgcol(scin)[2]; top->col[3] = sc_interp_get_fgcol(scin)[3]; - sc_interp_add_blocks(scin, scblocks); + sc_interp_add_blocks(scin, sc_block_child(scblocks)); sc_interp_destroy(scin); @@ -320,9 +320,9 @@ int export_pdf(struct presentation *p, const char *filename) cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_fill(cr); - render_sc_with_context(sc_block_child(bl), cr, p->slide_width, - p->slide_height, stylesheets, NULL, - p->is, i, p->lang, pc); + render_sc_with_context(bl, cr, p->slide_width, + p->slide_height, stylesheets, NULL, + p->is, i, p->lang, pc); cairo_restore(cr); |