Skip to content

Commit

Permalink
fbcon: fix scrolling after logo is cleared
Browse files Browse the repository at this point in the history
If the 'clear' command is used on the frame buffer with a logo the upper
area is filled by few lines but not scrolled anymore.

Fix this by removing the protected area for the logo if any part of the
logo is cleared.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Aug 5, 2008
1 parent efc4918 commit c213ddf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,9 @@ 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)
vc->vc_top = 0;

/* Split blits that cross physical y_wrap boundary */

y_break = p->vrows - p->yscroll;
Expand Down

0 comments on commit c213ddf

Please sign in to comment.