diff options
author | Thomas White <taw@bitwiz.org.uk> | 2015-10-23 16:18:24 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2015-10-23 16:18:24 +0100 |
commit | 5694221626157e5200f02b564c9c6c2b4f0d746c (patch) | |
tree | e61e4ea0aee52029f631568b90d4d7ee3e953994 /src/sc_editor.c | |
parent | 548a3256d607ca564b25a98e7f4d8286fb07e6dd (diff) |
Cull like crazy when rendering lines
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index 2e1d17b..05f74f8 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -642,7 +642,8 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, SCEditor *e) /* Contents */ cairo_translate(cr, 0.0, -e->scroll_pos); cairo_translate(cr, e->border_offs_x, e->border_offs_y); - recursive_draw(e->top, cr, e->is, ISZ_EDITOR); + recursive_draw(e->top, cr, e->is, ISZ_EDITOR, + e->scroll_pos, e->scroll_pos + e->visible_height); /* Editing overlay */ draw_overlay(cr, e); |