aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-25 19:33:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-25 19:33:56 +0000
commitd151d4bc50a94d6a24c95f705a0ba65fbef3ae80 (patch)
treeb039212cd6ed14e70706fd6f036a7171ab1e8b1d /grid.h
parentMerge branch 'wl_output' (diff)
parentgrid: 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.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/grid.h b/grid.h
index cbe60536..1066e28f 100644
--- a/grid.h
+++ b/grid.h
@@ -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]);