aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-27 11:56:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-27 11:56:13 +0000
commite896c2fa5575120469e7571d590bf03e4f5c803c (patch)
tree8c8db04e53e166d92648f5398a1709427454bebc /sixel.h
parentsixel: split_by_rectangle: bug: typo in boundary check (diff)
sixel: refactor handling of wrap-around delete- and split regions
Handle these on a higher abstraction level. The low level functions that detect sixel intersections now assume the specified rectangle (or line region) does *not* cross the wrap-around. This is ensured by detecting a wrap-around region before hand, and splitting it up into two, non wrapping regions.
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sixel.h b/sixel.h
index bb3b6cb0..1d282e85 100644
--- a/sixel.h
+++ b/sixel.h
@@ -12,8 +12,9 @@ void sixel_unhook(struct terminal *term);
void sixel_destroy(struct sixel *sixel);
-void sixel_delete_in_range(struct terminal *term, int start, int end);
-void sixel_delete_at_row(struct terminal *term, int _row);
+/* Row numbers are relative to current grid offset */
+void sixel_delete_in_range(struct terminal *term, int row_start, int row_end);
+void sixel_delete_at_row(struct terminal *term, int row);
void sixel_split_at_cursor(struct terminal *term);
void sixel_colors_report_current(struct terminal *term);