diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 20:04:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 20:04:24 +0000 |
| commit | 7985cefd65d98f6ffd86c64c3bb866a0283e10d2 (patch) | |
| tree | f07d0abbd8fc17b4bbfb31c031c4e5002baab7d8 /sixel.c | |
| parent | sixel: application configurable image max width/height (diff) | |
sixel: add comments to max_width()/max_height()
Diffstat (limited to 'sixel.c')
| -rw-r--r-- | sixel.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -97,6 +97,7 @@ sixel_unhook(struct terminal *term) static unsigned max_width(const struct terminal *term) { + /* foot extension - treat 0 to mean current terminal size */ return term->sixel.max_width == 0 ? term->cols * term->cell_width : term->sixel.max_width; @@ -105,6 +106,7 @@ max_width(const struct terminal *term) static unsigned max_height(const struct terminal *term) { + /* foot extension - treat 0 to mean current terminal size */ return term->sixel.max_height == 0 ? term->rows * term->cell_height : term->sixel.max_height; |
