diff options
author | nicm <nicm> | 2019-03-18 15:25:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-18 15:25:36 +0000 |
commit | d738d5168804405240a3f36b6f410baee39cd9e0 (patch) | |
tree | c7459e790d1efb2a82a4078ad2b16af08e7d0399 /grid.c | |
parent | 2628af573d98f7bdd4db02c7a80c860b867a45fb (diff) | |
download | rtmux-d738d5168804405240a3f36b6f410baee39cd9e0.tar.gz rtmux-d738d5168804405240a3f36b6f410baee39cd9e0.tar.bz2 rtmux-d738d5168804405240a3f36b6f410baee39cd9e0.zip |
Mode init needs to be fired with the mode on the list or it will not be
resized correctly.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -481,11 +481,10 @@ void grid_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc) { if (grid_check_y(gd, __func__, py) != 0 || - px >= gd->linedata[py].cellsize) { + px >= gd->linedata[py].cellsize) memcpy(gc, &grid_default_cell, sizeof *gc); - return; - } - return (grid_get_cell1(&gd->linedata[py], px, gc)); + else + grid_get_cell1(&gd->linedata[py], px, gc); } /* Set cell at relative position. */ |