fbcon: clear the logo bitmap from the margin area
Subsystems (2)
PATCH 1/1 fbcon: clear the logo bitmap from the margin area
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]>
--- drivers/video/console/fbcon.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/video/console/fbcon.c +9 -1
@@ -1236,8 +1236,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 */
Signature · 1 line
1.7.10.4