version 1.15, 2009/07/22 20:56:58 |
version 1.16, 2009/07/27 11:33:21 |
|
|
tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy) |
tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy) |
{ |
{ |
const struct grid_cell *gc; |
const struct grid_cell *gc; |
|
struct grid_cell tmpgc; |
const struct grid_utf8 *gu; |
const struct grid_utf8 *gu; |
u_int i, sx; |
u_int i, sx; |
|
|
|
|
gu = grid_view_peek_utf8(s->grid, i, py); |
gu = grid_view_peek_utf8(s->grid, i, py); |
|
|
if (screen_check_selection(s, i, py)) { |
if (screen_check_selection(s, i, py)) { |
s->sel.cell.data = gc->data; |
memcpy(&tmpgc, &s->sel.cell, sizeof tmpgc); |
tty_cell(tty, &s->sel.cell, gu); |
tmpgc.data = gc->data; |
|
tmpgc.flags = gc->flags; |
|
tty_cell(tty, &tmpgc, gu); |
} else |
} else |
tty_cell(tty, gc, gu); |
tty_cell(tty, gc, gu); |
} |
} |