summaryrefslogtreecommitdiffstats
path: root/grid-view.c
diff options
context:
space:
mode:
authornicm <nicm>2020-06-02 20:51:46 +0000
committernicm <nicm>2020-06-02 20:51:46 +0000
commit4694e9a2b62c8df0862d80237e42978d65fc824e (patch)
treeb7c9710117c99894e62fc2b672600475cd9ed260 /grid-view.c
parent2a4d4bda2b94602e9f999ff0b59efa92613f75a9 (diff)
Move the code to set up a padding cell into grid.c.
Diffstat (limited to 'grid-view.c')
-rw-r--r--grid-view.c7
1 files changed, 7 insertions, 0 deletions
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,