aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-10-23 16:01:37 +0100
committerThomas White <taw@bitwiz.org.uk>2015-10-23 16:01:37 +0100
commit548a3256d607ca564b25a98e7f4d8286fb07e6dd (patch)
tree41ecdf92993e535ae2a89a9bcfea8e154c21f791
parent0c834391b9e544de81153d7dda1b064ce202933b (diff)
No need for need_draw
-rw-r--r--src/sc_editor.c3
-rw-r--r--src/sc_editor.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index b41cb9e..2e1d17b 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -115,7 +115,6 @@ static gboolean resize_sig(GtkWidget *widget, GdkEventConfigure *event,
e->top->y = 0.0;
wrap_contents(e->top); /* Only the top level needs to be wrapped */
update_size(e);
- e->need_draw = 1;
return FALSE;
}
@@ -289,7 +288,6 @@ static void full_rerender(SCEditor *e)
recursive_wrap(e->top, e->is, ISZ_EDITOR);
update_size(e);
- e->need_draw = 1;
sc_editor_redraw(e);
}
@@ -1745,7 +1743,6 @@ SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock **stylesheets)
sceditor->cbl = NULL;
sceditor->scroll_pos = 0;
sceditor->flow = 0;
- sceditor->need_draw = 1;
sceditor->stylesheets = copy_ss_list(stylesheets);
diff --git a/src/sc_editor.h b/src/sc_editor.h
index a6276ee..f11a842 100644
--- a/src/sc_editor.h
+++ b/src/sc_editor.h
@@ -105,7 +105,6 @@ struct _sceditor
double scroll_pos;
int visible_height;
int flow;
- int need_draw;
/* Pointers to the frame currently being edited */
struct frame *selection;