diff options
| author | Andrew J. Hesford <ajh@sideband.org> | 2024-01-17 20:00:14 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-02-05 11:14:53 +0000 |
| commit | 21a8d832ce12217ddd493cdcaefdc457128f2ada (patch) | |
| tree | c49b5375dc8f2b1919adc2a1a8fc49e2c25cc3dd /terminal.c | |
| parent | util: add streq() function and use in place of strcmp(...) == 0 (diff) | |
feature: add resize-by-cells option to constrain window sizes...
...to multiples of the cell size, and preserve grid size when changing
fonts or display scales in floating windows.
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -784,10 +784,11 @@ term_set_fonts(struct terminal *term, struct fcft_font *fonts[static 4], * render_resize() after this function */ if (resize_grid) { /* Use force, since cell-width/height may have changed */ - render_resize_force( + render_resize( term, (int)roundf(term->width / term->scale), - (int)roundf(term->height / term->scale)); + (int)roundf(term->height / term->scale), + RESIZE_FORCE | RESIZE_KEEP_GRID); } return true; } |
