Move the code to set up a padding cell into grid.c.

This commit is contained in:
nicm
2020-06-02 20:51:46 +00:00
parent 2a4d4bda2b
commit 4694e9a2b6
5 changed files with 33 additions and 12 deletions

View File

@ -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,