Skip to content

Commit

Permalink
fbcon: clear the logo bitmap from the margin area
Browse files Browse the repository at this point in the history
Explicitly clear_margins when clearing the logo, in case the font dimensions
are non-integral to the framebuffer dimensions.

Signed-off-by: Kamal Mostafa <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Cc: Tomi Valkeinen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kamalmostafa authored and torvalds committed Feb 22, 2013
1 parent 42b5dd5 commit 256fc0e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,16 @@ static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height,
if (!height || !width)
return;

if (sy < vc->vc_top && vc->vc_top == logo_lines)
if (sy < vc->vc_top && vc->vc_top == logo_lines) {
vc->vc_top = 0;
/*
* If the font dimensions are not an integral of the display
* dimensions then the ops->clear below won't end up clearing
* the margins. Call clear_margins here in case the logo
* bitmap stretched into the margin area.
*/
fbcon_clear_margins(vc, 0);
}

/* Split blits that cross physical y_wrap boundary */

Expand Down

0 comments on commit 256fc0e

Please sign in to comment.