aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/core/bitblit.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2017-08-18 13:56:40 -0400
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-08-18 13:56:40 -0400
commit74c1c8b3326a366d39aa74e1737a28d4cba151c8 (patch)
tree821b7647c8fc9e41f4b02eb1897d3e7e4569d980 /drivers/video/fbdev/core/bitblit.c
parent16622a8e7e46fab31fd33ca5a23672385de240f6 (diff)
fbcon: add fbcon=margin:<color> command line option
This adds a new command line option to select the fbcon margin color. The motivation for this is screens where black does not blend into the physical surroundings of the screen. For example, using an LCD (not the backlit kind), white text on a black background is hard to read, so inverting the colors is preferred. However, when you do this, most of the screen is filled with white but the margins are still filled with black. This makes a big, black, backwards 'L' on the screen. By setting fbcon=margin:7, the margins will be filled with white and the LCD looks as expected. Signed-off-by: David Lechner <david@lechnology.com> [b.zolnierkie: ported over fbcon changes] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/core/bitblit.c')
-rw-r--r--drivers/video/fbdev/core/bitblit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/core/bitblit.c b/drivers/video/fbdev/core/bitblit.c
index 99f3a1c3d093..790900d646c0 100644
--- a/drivers/video/fbdev/core/bitblit.c
+++ b/drivers/video/fbdev/core/bitblit.c
@@ -203,7 +203,7 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info,
203} 203}
204 204
205static void bit_clear_margins(struct vc_data *vc, struct fb_info *info, 205static void bit_clear_margins(struct vc_data *vc, struct fb_info *info,
206 int bottom_only) 206 int color, int bottom_only)
207{ 207{
208 unsigned int cw = vc->vc_font.width; 208 unsigned int cw = vc->vc_font.width;
209 unsigned int ch = vc->vc_font.height; 209 unsigned int ch = vc->vc_font.height;
@@ -213,7 +213,7 @@ static void bit_clear_margins(struct vc_data *vc, struct fb_info *info,
213 unsigned int bs = info->var.yres - bh; 213 unsigned int bs = info->var.yres - bh;
214 struct fb_fillrect region; 214 struct fb_fillrect region;
215 215
216 region.color = 0; 216 region.color = color;
217 region.rop = ROP_COPY; 217 region.rop = ROP_COPY;
218 218
219 if (rw && !bottom_only) { 219 if (rw && !bottom_only) {