From 4694e9a2b62c8df0862d80237e42978d65fc824e Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 2 Jun 2020 20:51:46 +0000 Subject: Move the code to set up a padding cell into grid.c. --- grid-view.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'grid-view.c') diff --git a/grid-view.c b/grid-view.c index a4bd5ba2..f230d3c8 100644 --- a/grid-view.c +++ b/grid-view.c @@ -45,6 +45,13 @@ grid_view_set_cell(struct grid *gd, u_int px, u_int py, grid_set_cell(gd, grid_view_x(gd, px), grid_view_y(gd, py), gc); } +/* Set padding. */ +void +grid_view_set_padding(struct grid *gd, u_int px, u_int py) +{ + grid_set_padding(gd, grid_view_x(gd, px), grid_view_y(gd, py)); +} + /* Set cells. */ void grid_view_set_cells(struct grid *gd, u_int px, u_int py, -- cgit