summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/view.c b/view.c
index 0f2c3f6..7c42bb4 100644
--- a/view.c
+++ b/view.c
@@ -43,7 +43,9 @@ struct view {
/* action */
const struct view_ops *ops;
- int dirty:1; /* re-draw only when dirty */
+
+ /* flag */
+ /* TODO: int isdirty:1; */
};
static inline void draw_textn(struct redr_ctx *window, int x, int y, int size,
@@ -85,7 +87,6 @@ void view_init_root(struct view **root, struct redr_ctx *window) {
nroot->font_spacing = 0;
nroot->ops = &root_op;
- nroot->dirty = 0;
*root = nroot;
}
@@ -245,7 +246,6 @@ struct view_eb *view_eb_create_under(struct view *upper,
((struct view *)veb)->font_spacing = font_spacing;
((struct view *)veb)->ops = &view_eb_ops;
- ((struct view *)veb)->dirty = 0;
veb->eb = eb;
veb->scroll = scroll;