summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--view.c6
-rw-r--r--view.h1
2 files changed, 3 insertions, 4 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;
diff --git a/view.h b/view.h
index d9b3ff0..b346e75 100644
--- a/view.h
+++ b/view.h
@@ -7,7 +7,6 @@
struct view;
-
void view_init_root(struct view **root, struct redr_ctx *window);
size_t view_child_num(struct view *vw);
void view_free_under(struct view *root);