diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-07-04 13:02:25 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-07-04 13:02:25 +0100 |
commit | 850c26dd46a0b6983e32112fc1e37b8aa5a5268b (patch) | |
tree | ce9250e828bfc4ab96e3faae08ea9695006a5721 /grid.c | |
parent | db07f338863eea6a8eda2b0efafb7e2b2500e14e (diff) | |
parent | 2fae6a57618e1cef47b65e73504d7d5570ca6a8e (diff) | |
download | rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.tar.gz rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.tar.bz2 rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -145,6 +145,18 @@ grid_extended_cell(struct grid_line *gl, struct grid_cell_entry *gce, return (gcp); } +struct grid_line * +grid_get_line(struct grid *gd, u_int line) +{ + return (&gd->linedata[line]); +} + +void +grid_adjust_lines(struct grid *gd, u_int lines) +{ + gd->linedata = xreallocarray(gd->linedata, lines, sizeof *gd->linedata); +} + /* Copy default into a cell. */ static void grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg) |