aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-10-23 15:58:54 +0100
committerThomas White <taw@bitwiz.org.uk>2015-10-23 15:58:54 +0100
commit0c834391b9e544de81153d7dda1b064ce202933b (patch)
tree4d685162b77b293cbc24e866b16a307b86543c56 /src/sc_editor.c
parent05fa0c9cc8a5df00f70859095634b33ce6449e97 (diff)
Logical width is needed at interpreting time
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 9fcf457..b41cb9e 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -103,7 +103,8 @@ static gboolean resize_sig(GtkWidget *widget, GdkEventConfigure *event,
if ( e->top == NULL ) {
cairo_t *cr = gdk_cairo_create(gtk_widget_get_window(widget));
e->top = interp_and_shape(e->scblocks, e->stylesheets, e->cbl,
- e->is, ISZ_EDITOR, 0, cr);
+ e->is, ISZ_EDITOR, 0, cr,
+ event->width, 0.0);
cairo_destroy(cr);
}
@@ -277,7 +278,7 @@ static void full_rerender(SCEditor *e)
cairo_t *cr = gdk_cairo_create(gtk_widget_get_window(GTK_WIDGET(e)));
e->top = interp_and_shape(e->scblocks, e->stylesheets, e->cbl,
- e->is, ISZ_EDITOR, 0, cr);
+ e->is, ISZ_EDITOR, 0, cr, e->w, 0.0);
cairo_destroy(cr);
e->top->x = 0.0;