console: reset font color to white by default
Reset font color to white for new cells. This allows us to draw reversed cells that are not occupied by any value. Otherwise, these cells would be still black if reversed. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
d17342982b
commit
f311a506dd
@ -164,6 +164,9 @@ static int init_cell(struct cell *cell)
|
||||
return -EINVAL;
|
||||
|
||||
memset(cell, 0, sizeof(*cell));
|
||||
cell->attr.fr = 255;
|
||||
cell->attr.fg = 255;
|
||||
cell->attr.fb = 255;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user