diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-14 12:07:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-14 12:07:13 +0000 |
| commit | 2a723e1c4cf3b76be804a46db6223ad3ed478783 (patch) | |
| tree | 20f302018f236b7c462bc21beb92d56e22493dbb | |
| parent | Merge branch 'option-no-wait' (diff) | |
| parent | sixel: max geometry should be max geometry, not current window size (diff) | |
Merge branch 'sixel-fix-max-geometry'
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | sixel.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d392849..8ead563d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -91,6 +91,8 @@ background color for empty pixels instead of the default background color (https://codeberg.org/dnkl/foot/issues/391). * Sixel decoding optimized; up to 100% faster in some cases. +* Reported sixel “max geometry” from current window size, to the + configured maximum size (defaulting to 10000x10000). ### Deprecated @@ -1375,8 +1375,8 @@ sixel_geometry_set(struct terminal *term, unsigned width, unsigned height) void sixel_geometry_report_max(struct terminal *term) { - unsigned max_width = term->cols * term->cell_width; - unsigned max_height = term->rows * term->cell_height; + unsigned max_width = term->sixel.max_width; + unsigned max_height = term->sixel.max_height; char reply[64]; size_t n = xsnprintf(reply, sizeof(reply), "\033[?2;0;%u;%uS", max_width, max_height); |
