mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
limit font size to non-negative values
This commit is contained in:
parent
22e7131241
commit
54e2b0b005
1 changed files with 1 additions and 1 deletions
|
|
@ -1430,7 +1430,7 @@ term_font_size_adjust(struct terminal *term, double amount)
|
|||
old_pt_size = term->font_sizes[i].px_size * 72. / dpi;
|
||||
}
|
||||
|
||||
term->font_sizes[i].pt_size = old_pt_size + amount;
|
||||
term->font_sizes[i].pt_size = fmax(old_pt_size + amount, 0);
|
||||
term->font_sizes[i].px_size = -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue