From 38a682f0d0114e118e71482ee1cfb89bc846f20d Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 15 Feb 2020 22:19:08 +0100 Subject: render/grid: move grid reflow code to grid.c --- grid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grid.h') diff --git a/grid.h b/grid.h index 96ef4181..50e2c2b7 100644 --- a/grid.h +++ b/grid.h @@ -6,6 +6,9 @@ void grid_swap_row(struct grid *grid, int row_a, int row_b, bool initialize); struct row *grid_row_alloc(int cols, bool initialize); void grid_row_free(struct row *row); +int grid_reflow( + struct grid *grid, int new_rows, int new_cols, + int old_screen_rows, int new_screen_rows); static inline int grid_row_absolute(const struct grid *grid, int row_no) -- cgit v1.3