diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-22 08:33:19 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-22 08:33:19 +0100 |
| commit | 617f5e2050d317d69336dd87c44787509c5fb861 (patch) | |
| tree | b65ccb5fc484a93f27a883782e2bde668119de2b | |
| parent | 810e8a9a6ecd8557b371c5d9c51c718e372b0fb4 (diff) | |
| download | vis-617f5e2050d317d69336dd87c44787509c5fb861.tar.gz vis-617f5e2050d317d69336dd87c44787509c5fb861.tar.xz | |
view: rename view_dirty to view_invalidate
| -rw-r--r-- | ui-terminal.c | 6 | ||||
| -rw-r--r-- | view.c | 2 | ||||
| -rw-r--r-- | view.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ui-terminal.c b/ui-terminal.c index 388f3e4..4b4a60b 100644 --- a/ui-terminal.c +++ b/ui-terminal.c @@ -355,7 +355,7 @@ static void ui_redraw(Ui *ui) { UiTerm *tui = (UiTerm*)ui; ui_term_backend_clear(tui); for (UiTermWin *win = tui->windows; win; win = win->next) - view_dirty(win->win->view); + view_invalidate(win->win->view); } static void ui_resize(Ui *ui) { @@ -412,8 +412,8 @@ static void ui_window_focus(UiWin *w) { if (new->options & UI_OPTION_STATUSBAR) new->ui->selwin = new; if (old) - view_dirty(old->win->view); - view_dirty(new->win->view); + view_invalidate(old->win->view); + view_invalidate(new->win->view); } static void ui_window_options_set(UiWin *w, enum UiOption options) { @@ -438,7 +438,7 @@ void view_draw(View *view) { view->need_update = true; } -void view_dirty(View *view) { +void view_invalidate(View *view) { view->need_update = true; } @@ -42,7 +42,7 @@ void view_free(View*); bool view_resize(View*, int width, int height); int view_height_get(View*); int view_width_get(View*); -void view_dirty(View*); +void view_invalidate(View*); void view_draw(View*); bool view_update(View*); /* changes how many spaces are used for one tab (must be >0), redraws the window */ |
