Clear blank area properly on redraw, and add a marker line below it.

This commit is contained in:
Nicholas Marriott
2008-06-14 12:05:06 +00:00
parent 0bfd7a5023
commit 62d7ad2690
5 changed files with 31 additions and 40 deletions

View File

@ -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;