mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: change minimum window size from 4x20 -> 1x2 (rows/cols)
This commit is contained in:
parent
f9cbdd3b11
commit
6e4d29ef71
2 changed files with 4 additions and 2 deletions
|
|
@ -75,6 +75,8 @@
|
|||
* Foot now searches for its configuration in
|
||||
`$XDG_DATA_DIRS/foot/foot.ini`, if no configuration is found in
|
||||
`$XDG_CONFIG_HOME/foot/foot.ini` or in `$XDG_CONFIG_HOME/footrc`.
|
||||
* Minimum window size changed from four rows and 20 columns, to 1 row
|
||||
and 2 columns.
|
||||
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
4
render.c
4
render.c
|
|
@ -2042,8 +2042,8 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
|
|||
}
|
||||
|
||||
/* Don't shrink grid too much */
|
||||
const int min_cols = 20;
|
||||
const int min_rows = 4;
|
||||
const int min_cols = 2;
|
||||
const int min_rows = 1;
|
||||
|
||||
/* Minimum window size */
|
||||
const int min_width = min_cols * term->cell_width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue