aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-03-30 23:57:15 +0200
committerThomas White <taw@bitwiz.me.uk>2018-03-30 23:57:15 +0200
commit57510a5330b09cd701bb0bb4cbbeca1d6d096737 (patch)
treea393a3f54a494156cb17a892354f539bc0087c10 /src/sc_editor.c
parent65446ad85962bc79620026d50d8ad26954ced041 (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/sc_editor.c')
-rw-r--r--src/sc_editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 5fdcc07..e0fc64c 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -195,7 +195,7 @@ static gboolean resize_sig(GtkWidget *widget, GdkEventConfigure *event,
w = e->log_w;
h = e->log_h;
}
- e->top = interp_and_shape(sc_block_child(e->scblocks),
+ e->top = interp_and_shape(e->scblocks,
e->stylesheets, e->cbl,
e->is, e->slidenum, pc,
w, h, e->lang);
@@ -396,7 +396,7 @@ static void full_rerender(SCEditor *e)
pc = gdk_pango_context_get();
- e->top = interp_and_shape(sc_block_child(e->scblocks),
+ e->top = interp_and_shape(e->scblocks,
e->stylesheets, e->cbl,
e->is, e->slidenum,
pc, e->log_w, 0.0, e->lang);