aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-15 21:19:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-15 21:19:08 +0000
commit38a682f0d0114e118e71482ee1cfb89bc846f20d (patch)
tree7d997b04b34f38b9a372a202531f7b8da7f03040 /grid.h
parentwayland: output_mode: update PPI (diff)
render/grid: move grid reflow code to grid.c
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h3
1 files changed, 3 insertions, 0 deletions
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)