aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index a6515c7..80c56dd 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -1415,6 +1415,8 @@ void sc_editor_set_size(SCEditor *e, int w, int h)
e->w = w;
e->h = h;
update_size_request(e);
+ rerender(e);
+ redraw_editor(e);
}
@@ -1422,6 +1424,8 @@ void sc_editor_set_logical_size(SCEditor *e, double w, double h)
{
e->log_w = w;
e->log_h = h;
+ rerender(e);
+ redraw_editor(e);
}