aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 20:04:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 20:04:24 +0000
commit7985cefd65d98f6ffd86c64c3bb866a0283e10d2 (patch)
treef07d0abbd8fc17b4bbfb31c031c4e5002baab7d8
parentsixel: application configurable image max width/height (diff)
sixel: add comments to max_width()/max_height()
-rw-r--r--sixel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 01c6987b..be21d263 100644
--- a/sixel.c
+++ b/sixel.c
@@ -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;