diff options
author | Melchior FRANZ <mfranz@aon.at> | 2015-11-01 19:48:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-06 23:42:25 -0800 |
commit | e882f7158f102ef148a2d96eb4cb50cc88830c87 (patch) | |
tree | 773528566b7304cfe94d4f86b90eff690bcf9d0e /drivers/tty/serial/jsm/Makefile | |
parent | e36ae3439936e13c33f5841c7c2c1a9875acbb6d (diff) | |
download | linux-e882f7158f102ef148a2d96eb4cb50cc88830c87.tar.bz2 |
tty: vt: initialize softcursor_original correctly
add_softcursor() stores the contents of the text buffer position in this
variable before drawing the softcursor, whereas hide_softcursor() writes
the value back. A value of -1 means that no cursor has been drawn and
therefore no character is to be restored. softcursor_original, however,
is only implicitly initialized with 0. Therefore, when hide_softcursor
is called for the first time (console_init -> con_init -> redraw_screen
-> hide_cursor), it wrongly writes 0x0000 in the top left corner of
the text buffer. Normally, this is just as black as the rest of the
screen (vc_video_erase_char) and can't be seen, but it appears as a
black cursor rectangle on non-black backgrounds e.g. with boot option
"vt.global_cursor_default=0 vt.color=0xf0". softcursor_original needs
to be initialized with -1.
Signed-off-by: Melchior FRANZ <mfranz@aon.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/jsm/Makefile')
0 files changed, 0 insertions, 0 deletions