mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-27 06:46:44 -04:00
render: rename term->render.resizing -> term->interactive_resizing
But also, more importantly, logical fixes: * Stash the number of new scrollback lines the stashed ‘normal’ grid should be resized *to*. There’s also a couple of performance changes here: * When doing a delayed reflow (tiocswinsz timer), call sixel_reflow_grid(term, &term->normal) - there’s no need to reflow sixels in the ‘alt’ screen. * When doing a delayed reflow, free all scroll damage. It’s not needed, since we’re damaging the entire window anyway. * Use minimum size for the temporary ‘normal’ grid (that contains the current viewport). We just need it to be large enough to fit the current viewport, and be a valid grid row count (power of 2). This just so happens to be the current ‘alt’ grid’s row count...
This commit is contained in:
parent
c550d67cd8
commit
298f210ed9
2 changed files with 45 additions and 34 deletions
11
terminal.h
11
terminal.h
|
|
@ -595,14 +595,15 @@ struct terminal {
|
|||
|
||||
size_t search_glyph_offset;
|
||||
|
||||
struct {
|
||||
struct grid *grid;
|
||||
int screen_rows;
|
||||
} resizing;
|
||||
|
||||
struct timespec input_time;
|
||||
} render;
|
||||
|
||||
struct {
|
||||
struct grid *grid; /* Original ‘normal’ grid, before resize started */
|
||||
int old_screen_rows; /* term->rows before resize started */
|
||||
int new_rows; /* New number of scrollback rows */
|
||||
} interactive_resizing;
|
||||
|
||||
struct {
|
||||
enum {
|
||||
SIXEL_DECSIXEL, /* DECSIXEL body part ", $, -, ? ... ~ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue