mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: add comments to max_width()/max_height()
This commit is contained in:
parent
25b09b909c
commit
7985cefd65
1 changed files with 2 additions and 0 deletions
2
sixel.c
2
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue