diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-14 12:05:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-14 12:05:06 +0000 |
commit | 62d7ad2690c0f72f06195351aa50e3fe037f456a (patch) | |
tree | 1d37c6afd94b2b2941b9ef3694c349cef8d96c05 /screen.c | |
parent | 0bfd7a502309d329bcd0a41353b07ca6c5c5cafa (diff) |
Clear blank area properly on redraw, and add a marker line below it.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.60 2008-06-03 21:42:37 nicm Exp $ */ +/* $Id: screen.c,v 1.61 2008-06-14 12:05:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -297,13 +297,8 @@ void screen_set_cell(struct screen *s, u_int cx, u_int cy, u_char data, u_char attr, u_char colr) { - if (cx >= s->grid_size[cy]) { - if (data == SCREEN_DEFDATA && - attr == SCREEN_DEFATTR && - colr == SCREEN_DEFCOLR) - return; + if (cx >= s->grid_size[cy]) screen_expand_line(s, cy, cx + 1); - } s->grid_data[cy][cx] = data; s->grid_attr[cy][cx] = attr; |