diff options
author | nicm <nicm> | 2015-01-06 21:14:42 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-01-06 21:14:42 +0000 |
commit | aae2b7aa89b80ec6b07a8036f923dc6c8882cfae (patch) | |
tree | 6f936efbe23d0d91d15ef31490929d5de5c1a494 /grid-view.c | |
parent | fee096a40680dff40557f016b5904b3dfbf9072c (diff) | |
download | rtmux-aae2b7aa89b80ec6b07a8036f923dc6c8882cfae.tar.gz rtmux-aae2b7aa89b80ec6b07a8036f923dc6c8882cfae.tar.bz2 rtmux-aae2b7aa89b80ec6b07a8036f923dc6c8882cfae.zip |
Revert to r1.16 since this is still clearly broken and I can't see how
right now.
Diffstat (limited to 'grid-view.c')
-rw-r--r-- | grid-view.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/grid-view.c b/grid-view.c index 078a0da4..badabd56 100644 --- a/grid-view.c +++ b/grid-view.c @@ -184,10 +184,7 @@ grid_view_insert_cells(struct grid *gd, u_int px, u_int py, u_int nx) px = grid_view_x(gd, px); py = grid_view_y(gd, py); - if (gd->linedata[py].cellsize + nx < gd->sx) - sx = grid_view_x(gd, gd->linedata[py].cellsize + nx); - else - sx = grid_view_x(gd, gd->sx); + sx = grid_view_x(gd, gd->sx); if (px == sx - 1) grid_clear(gd, px, py, 1, 1); @@ -204,9 +201,7 @@ grid_view_delete_cells(struct grid *gd, u_int px, u_int py, u_int nx) px = grid_view_x(gd, px); py = grid_view_y(gd, py); - sx = grid_view_x(gd, gd->linedata[py].cellsize); - if (sx < px + nx) - sx = px + nx; + sx = grid_view_x(gd, gd->sx); grid_move_cells(gd, px, px + nx, py, sx - px - nx); grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1); |