From b0a2c54fe841545d21e79b5bb559cc2dc9d3353f Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Jun 2019 18:02:49 +0200 Subject: vt: wip: implement scrolling region This is largely untested, but existing scrolling code has been converted to using a terminal-global scrolling region that is defined as start-end of the scrollable region. This is compared to the old code where the scrolling region where defined in terms of marginals, counted in lines from top and from bottom. --- grid.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'grid.h') diff --git a/grid.h b/grid.h index 1951f54f..9a52b108 100644 --- a/grid.h +++ b/grid.h @@ -5,8 +5,7 @@ void grid_damage_update(struct grid *grid, int start, int length); void grid_damage_erase(struct grid *grid, int start, int length); void grid_damage_scroll( - struct grid *grid, enum damage_type damage_type, - int top_margin, int bottom_margin, int lines); + struct grid *grid, enum damage_type damage_type, int lines); void grid_erase(struct grid *grid, int start, int end); -- cgit v1.3