diff options
| author | Kamal Mostafa <kamal@whence.com> | 2013-02-21 19:42:07 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:16 -0500 |
| commit | 256fc0e57dc0fce1e698d1be55bedd26f6d6bb5a (patch) | |
| tree | 6a4344442e80f6176c54c8ee7fa16b5d1a1f0605 | |
| parent | 42b5dd51930c04dc6fb59c7c7a79354ff91bc9a4 (diff) | |
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 <kamal@whence.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | drivers/video/console/fbcon.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index fdefa8fd72c4..f8a61e210d2e 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
| @@ -1242,8 +1242,16 @@ static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height, | |||
| 1242 | if (!height || !width) | 1242 | if (!height || !width) |
| 1243 | return; | 1243 | return; |
| 1244 | 1244 | ||
| 1245 | if (sy < vc->vc_top && vc->vc_top == logo_lines) | 1245 | if (sy < vc->vc_top && vc->vc_top == logo_lines) { |
| 1246 | vc->vc_top = 0; | 1246 | vc->vc_top = 0; |
| 1247 | /* | ||
| 1248 | * If the font dimensions are not an integral of the display | ||
| 1249 | * dimensions then the ops->clear below won't end up clearing | ||
| 1250 | * the margins. Call clear_margins here in case the logo | ||
| 1251 | * bitmap stretched into the margin area. | ||
| 1252 | */ | ||
| 1253 | fbcon_clear_margins(vc, 0); | ||
| 1254 | } | ||
| 1247 | 1255 | ||
| 1248 | /* Split blits that cross physical y_wrap boundary */ | 1256 | /* Split blits that cross physical y_wrap boundary */ |
| 1249 | 1257 | ||
