aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-10-09 14:01:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-10-10 15:19:18 +0000
commitf70c34c5a8c6e89f6591e08fe3e26b9f0f44e6d2 (patch)
treefce9549bd81b3a4adb8078f6c38006ca47518cfa /sixel.h
parentchangelog: fixed crash when resizing window with a very large scrollback (diff)
sixel: add sixel_reflow_grid()
This function reflows all sixels in the specified grid. The pre-existing sixel_reflow() function is a shortcut for sixel_reflow_grid(term, &term->normal) sixel_reflow_grid(term, &term->alt);
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sixel.h b/sixel.h
index a57957c3..f72b4dc4 100644
--- a/sixel.h
+++ b/sixel.h
@@ -19,6 +19,10 @@ void sixel_scroll_up(struct terminal *term, int rows);
void sixel_scroll_down(struct terminal *term, int rows);
void sixel_cell_size_changed(struct terminal *term);
+
+void sixel_reflow_grid(struct terminal *term, struct grid *grid);
+
+/* Shortcut for sixel_reflow_grid(normal) + sixel_reflow_grid(alt) */
void sixel_reflow(struct terminal *term);
/*