vte: set color to white on cell reset
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 30 May 2012 16:58:52 +0000 (18:58 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 30 May 2012 16:58:52 +0000 (18:58 +0200)
For the same reason as we reset it to white on cell creation we need to
reset it to white on cell reset. Otherwise we have odd artifacts in
reverse video mode.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/console.c

index 30d4f06..b02ff77 100644 (file)
@@ -176,6 +176,9 @@ static void reset_cell(struct cell *cell)
                return;
 
        memset(cell, 0, sizeof(*cell));
+       cell->attr.fr = 255;
+       cell->attr.fg = 255;
+       cell->attr.fb = 255;
 }
 
 static void free_line(struct line *line)