From 7985cefd65d98f6ffd86c64c3bb866a0283e10d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 22 Feb 2020 21:04:24 +0100 Subject: [PATCH] sixel: add comments to max_width()/max_height() --- sixel.c | 2 ++ 1 file changed, 2 insertions(+) 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;