Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96499
b: refs/heads/master
c: d850a2f
h: refs/heads/master
i:
  96497: d7c1dce
  96495: af56147
v: v3
  • Loading branch information
Jan Engelhardt authored and Linus Torvalds committed May 13, 2008
1 parent 4b369a5 commit 70a145e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fe3915a492503a9199af475a433b50258303806
refs/heads/master: d850a2fac11e4dd45d1d3d493a5a071b06c58c99
21 changes: 16 additions & 5 deletions trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,8 @@ static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]];
struct display *p = &fb_display[vc->vc_num];
int scroll_partial = info->flags & FBINFO_PARTIAL_PAN_OK;
unsigned short saved_ec;
int ret;

if (fbcon_is_inactive(vc, info))
return -EINVAL;
Expand All @@ -1865,6 +1867,11 @@ static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
* whole screen (prevents flicker).
*/

saved_ec = vc->vc_video_erase_char;
vc->vc_video_erase_char = vc->vc_scrl_erase_char;

ret = 0;

switch (dir) {
case SM_UP:
if (count > vc->vc_rows) /* Maximum realistic size */
Expand All @@ -1883,7 +1890,7 @@ static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
(b - count)),
vc->vc_scrl_erase_char,
vc->vc_size_row * count);
return 1;
ret = 1;
break;

case SCROLL_WRAP_MOVE:
Expand Down Expand Up @@ -1955,7 +1962,8 @@ static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
(b - count)),
vc->vc_scrl_erase_char,
vc->vc_size_row * count);
return 1;
ret = 1;
break;
}
break;

Expand All @@ -1974,7 +1982,7 @@ static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
t),
vc->vc_scrl_erase_char,
vc->vc_size_row * count);
return 1;
ret = 1;
break;

case SCROLL_WRAP_MOVE:
Expand Down Expand Up @@ -2044,10 +2052,13 @@ static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
t),
vc->vc_scrl_erase_char,
vc->vc_size_row * count);
return 1;
ret = 1;
break;
}
break;
}
return 0;
vc->vc_video_erase_char = saved_ec;
return ret;
}


Expand Down

0 comments on commit 70a145e

Please sign in to comment.