diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-27 16:44:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-27 16:44:00 +0000 |
commit | b97264bb70898465fbdba6a79cd1614b0f09c0fc (patch) | |
tree | 927027823369b56eddb5de3a8099176974e8eba0 /screen-redraw.c | |
parent | be0c79f3ad2a94083b6f79d40739b2b68d3848ae (diff) | |
download | rtmux-b97264bb70898465fbdba6a79cd1614b0f09c0fc.tar.gz rtmux-b97264bb70898465fbdba6a79cd1614b0f09c0fc.tar.bz2 rtmux-b97264bb70898465fbdba6a79cd1614b0f09c0fc.zip |
Update TODO.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index a1fbfb18..7752705d 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $Id: screen-redraw.c,v 1.26 2009-02-21 17:52:25 nicm Exp $ */ +/* $Id: screen-redraw.c,v 1.27 2009-03-27 16:44:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -128,21 +128,5 @@ screen_redraw_blanky(struct client *c, u_int oy, u_int ny, char ch) void screen_redraw_line(struct client *c, struct screen *s, u_int oy, u_int py) { - const struct grid_cell *gc; - struct grid_cell tc; - u_int i, sx; - - sx = screen_size_x(s); - if (sx > c->tty.sx) - sx = c->tty.sx; - for (i = 0; i < sx; i++) { - gc = grid_view_peek_cell(s->grid, i, py); - tty_cursor(&c->tty, i, py, oy); - if (screen_check_selection(s, i, py)) { - memcpy(&tc, &s->sel.cell, sizeof tc); - tc.data = gc->data; - tty_cell(&c->tty, &tc); - } else - tty_cell(&c->tty, gc); - } + tty_draw_line(&c->tty, s, py, oy); } |