projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d173429
)
console: reset font color to white by default
author
David Herrmann
<dh.herrmann@googlemail.com>
Wed, 30 May 2012 16:52:20 +0000
(18:52 +0200)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Wed, 30 May 2012 16:52:20 +0000
(18:52 +0200)
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>
src/console.c
patch
|
blob
|
history
diff --git
a/src/console.c
b/src/console.c
index
ebc67b9
..
30d4f06
100644
(file)
--- a/
src/console.c
+++ b/
src/console.c
@@
-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;
}