tsm: screen: fix cell-initialization on line resize

We didn't correctly initialize new lines on resize. In fact, we didn't
initialize new cells at all. This was all covered by a nasty-fix in the
screen-resize handler.
This fixes the line-resize handler to initialize all new cells correctly.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-10-11 12:20:08 +02:00
parent 851113718a
commit 3c85ac9541

View File

@ -160,7 +160,6 @@ static int line_resize(struct tsm_screen *con, struct line *line,
return -ENOMEM;
line->cells = tmp;
line->size = width;
while (line->size < width) {
cell_init(con, &line->cells[line->size]);