mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-19 05:33:44 -04:00
main: geometry defaults to 800x600 pixels
This commit is contained in:
parent
551170d940
commit
ac32bcda07
5 changed files with 5 additions and 12 deletions
|
|
@ -791,13 +791,6 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
|||
unsigned width = conf->width;
|
||||
unsigned height = conf->height;
|
||||
|
||||
if (width == -1) {
|
||||
/* No user-configuration - use 80x24 cells */
|
||||
assert(height == -1);
|
||||
width = 80 * term->cell_width;
|
||||
height = 24 * term->cell_height;
|
||||
}
|
||||
|
||||
/* Don't go below a single cell */
|
||||
width = max(width, term->cell_width);
|
||||
height = max(height, term->cell_height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue