From: Kamal Mostafa Date: Wed, 20 Feb 2013 02:13:37 +0000 (+1100) Subject: fbcon: clear the logo bitmap from the margin area X-Git-Tag: next-20130220~1^2~661 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c06c60f01e654bd557b706b9130e30264981b8a5;p=karo-tx-linux.git 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 Cc: Florian Tobias Schandinat Cc: Tomi Valkeinen Signed-off-by: Andrew Morton --- diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 501c599e7549..3cd675927826 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -1275,8 +1275,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 */