diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-08 13:29:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-08 13:29:27 +0000 |
commit | 5e01b6d663abc086847c9bec145edeb9cd91530a (patch) | |
tree | a8708ca5f4a199352452945133a6fc11af807e08 /tty.c | |
parent | e89e70e71575417195285a3ea55c430654f9fc21 (diff) | |
download | rtmux-5e01b6d663abc086847c9bec145edeb9cd91530a.tar.gz rtmux-5e01b6d663abc086847c9bec145edeb9cd91530a.tar.bz2 rtmux-5e01b6d663abc086847c9bec145edeb9cd91530a.zip |
Change the way the grid is stored, previously it was:
- a two-dimensional array of cells;
- a two-dimensional array of utf8 data;
- an array of line lengths.
Now it is a single array of a new struct grid_line each of which represents a
line and containts the length and an array of cells and an array of utf8 data.
This will make it easier to add additional per-line members, such as flags.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -486,8 +486,8 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy) u_int i, sx; sx = screen_size_x(s); - if (sx > s->grid->size[s->grid->hsize + py]) - sx = s->grid->size[s->grid->hsize + py]; + if (sx > s->grid->linedata[s->grid->hsize + py].cellsize) + sx = s->grid->linedata[s->grid->hsize + py].cellsize; if (sx > tty->sx) sx = tty->sx; |