render: rename render_{enable,disable}_refresh()

This commit is contained in:
Daniel Eklöf 2020-01-12 12:28:00 +01:00
parent cb8a0260f3
commit 6e474e77e5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 9 additions and 7 deletions

5
dcs.c
View file

@ -12,7 +12,7 @@ bsu(struct terminal *term)
LOG_DBG("BSU - Begin Synchronized Update (params: %.*s)",
(int)term->vt.dcs.idx, term->vt.dcs.data);
render_disable_refresh(term);
render_enable_application_synchronized_updates(term);
}
static void
@ -20,7 +20,8 @@ esu(struct terminal *term)
{
LOG_DBG("ESU - Begin Synchronized Update (params: %.*s)",
(int)term->vt.dcs.idx, term->vt.dcs.data);
render_enable_refresh(term);
render_disable_application_synchronized_updates(term);
}
void

View file

@ -1016,7 +1016,7 @@ render_resize(struct terminal *term, int width, int height)
return;
/* Cancel an application initiated "Synchronized Update" */
render_enable_refresh(term);
render_disable_application_synchronized_updates(term);
term->width = width;
term->height = height;
@ -1242,7 +1242,7 @@ render_refresh(struct terminal *term)
}
void
render_disable_refresh(struct terminal *term)
render_enable_application_synchronized_updates(struct terminal *term)
{
if (term->render.application_synchronized_updates)
return;
@ -1251,7 +1251,7 @@ render_disable_refresh(struct terminal *term)
}
void
render_enable_refresh(struct terminal *term)
render_disable_application_synchronized_updates(struct terminal *term)
{
if (!term->render.application_synchronized_updates)
return;

View file

@ -11,12 +11,13 @@ void render_destroy(struct renderer *renderer);
void render_resize(struct terminal *term, int width, int height);
void render_set_title(struct terminal *term, const char *title);
void render_refresh(struct terminal *term);
void render_disable_refresh(struct terminal *term);
void render_enable_refresh(struct terminal *term);
bool render_xcursor_set(struct terminal *term);
void render_search_box(struct terminal *term);
void render_enable_application_synchronized_updates(struct terminal *term);
void render_disable_application_synchronized_updates(struct terminal *term);
struct render_worker_context {
int my_id;
struct terminal *term;