]> git.baikalelectronics.ru Git - kernel.git/commit
framebuffer: fix border color
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 16 Sep 2014 16:40:26 +0000 (12:40 -0400)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 30 Sep 2014 10:39:16 +0000 (13:39 +0300)
commit9199fde06a9d0d80c2b4cce54998883933f5ca32
tree80f1316690a2137b7461e7648039c27e3b1f5390
parentfdd6bf64a3290db0046179285b475ef89ac2a67e
framebuffer: fix border color

The framebuffer code uses the current background color to fill the border
when switching consoles, however, this results in inconsistent behavior.
For example:
- start Midnigh Commander
- the border is black
- switch to another console and switch back
- the border is cyan
- type something into the command line in mc
- the border is cyan
- switch to another console and switch back
- the border is black
- press F9 to go to menu
- the border is black
- switch to another console and switch back
- the border is dark blue

When switching to a console with Midnight Commander, the border is random
color that was left selected by the slang subsystem.

This patch fixes this inconsistency by always using black as the
background color when switching consoles.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/console/bitblit.c
drivers/video/console/fbcon_ccw.c
drivers/video/console/fbcon_cw.c
drivers/video/console/fbcon_ud.c