diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-25 19:33:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-11-25 19:33:56 +0000 |
| commit | d151d4bc50a94d6a24c95f705a0ba65fbef3ae80 (patch) | |
| tree | b039212cd6ed14e70706fd6f036a7171ab1e8b1d /grid.h | |
| parent | Merge branch 'wl_output' (diff) | |
| parent | grid: resize_without_reflow: don’t call min() on every loop iteration (diff) | |
Merge branch 'dont-reflow-alt-screen'
Closes #221
Diffstat (limited to 'grid.h')
| -rw-r--r-- | grid.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -6,11 +6,16 @@ void grid_swap_row(struct grid *grid, int row_a, int row_b); struct row *grid_row_alloc(int cols, bool initialize); void grid_row_free(struct row *row); -void grid_reflow( + +void grid_resize_without_reflow( + struct grid *grid, int new_rows, int new_cols, + int old_screen_rows, int new_screen_rows); + +void grid_resize_and_reflow( struct grid *grid, int new_rows, int new_cols, int old_screen_rows, int new_screen_rows, size_t tracking_points_count, - struct coord *const tracking_points[static tracking_points_count], + struct coord *const _tracking_points[static tracking_points_count], size_t compose_count, const struct composed composed[static compose_count]); |
