mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: rename render_{enable,disable}_refresh()
This commit is contained in:
parent
cb8a0260f3
commit
6e474e77e5
3 changed files with 9 additions and 7 deletions
5
dcs.c
5
dcs.c
|
|
@ -12,7 +12,7 @@ bsu(struct terminal *term)
|
||||||
LOG_DBG("BSU - Begin Synchronized Update (params: %.*s)",
|
LOG_DBG("BSU - Begin Synchronized Update (params: %.*s)",
|
||||||
(int)term->vt.dcs.idx, term->vt.dcs.data);
|
(int)term->vt.dcs.idx, term->vt.dcs.data);
|
||||||
|
|
||||||
render_disable_refresh(term);
|
render_enable_application_synchronized_updates(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -20,7 +20,8 @@ esu(struct terminal *term)
|
||||||
{
|
{
|
||||||
LOG_DBG("ESU - Begin Synchronized Update (params: %.*s)",
|
LOG_DBG("ESU - Begin Synchronized Update (params: %.*s)",
|
||||||
(int)term->vt.dcs.idx, term->vt.dcs.data);
|
(int)term->vt.dcs.idx, term->vt.dcs.data);
|
||||||
render_enable_refresh(term);
|
|
||||||
|
render_disable_application_synchronized_updates(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
6
render.c
6
render.c
|
|
@ -1016,7 +1016,7 @@ render_resize(struct terminal *term, int width, int height)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Cancel an application initiated "Synchronized Update" */
|
/* Cancel an application initiated "Synchronized Update" */
|
||||||
render_enable_refresh(term);
|
render_disable_application_synchronized_updates(term);
|
||||||
|
|
||||||
term->width = width;
|
term->width = width;
|
||||||
term->height = height;
|
term->height = height;
|
||||||
|
|
@ -1242,7 +1242,7 @@ render_refresh(struct terminal *term)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
render_disable_refresh(struct terminal *term)
|
render_enable_application_synchronized_updates(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (term->render.application_synchronized_updates)
|
if (term->render.application_synchronized_updates)
|
||||||
return;
|
return;
|
||||||
|
|
@ -1251,7 +1251,7 @@ render_disable_refresh(struct terminal *term)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
render_enable_refresh(struct terminal *term)
|
render_disable_application_synchronized_updates(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (!term->render.application_synchronized_updates)
|
if (!term->render.application_synchronized_updates)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
5
render.h
5
render.h
|
|
@ -11,12 +11,13 @@ void render_destroy(struct renderer *renderer);
|
||||||
void render_resize(struct terminal *term, int width, int height);
|
void render_resize(struct terminal *term, int width, int height);
|
||||||
void render_set_title(struct terminal *term, const char *title);
|
void render_set_title(struct terminal *term, const char *title);
|
||||||
void render_refresh(struct terminal *term);
|
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);
|
bool render_xcursor_set(struct terminal *term);
|
||||||
|
|
||||||
void render_search_box(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 {
|
struct render_worker_context {
|
||||||
int my_id;
|
int my_id;
|
||||||
struct terminal *term;
|
struct terminal *term;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue