Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54967
b: refs/heads/master
c: 2ae8547
h: refs/heads/master
i:
  54965: e65f99f
  54963: 731cc40
  54959: 31da0de
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 895fd5e commit 60ce215
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 32dd38030b3b4ca0aa18a5402059de27bf69ed6b
refs/heads/master: 2ae854777592856ad8ce4d4cdb6114804e2e28f6
5 changes: 4 additions & 1 deletion trunk/drivers/video/console/vgacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,9 @@ static void vgacon_set_cursor_size(int xpos, int from, int to)

static void vgacon_cursor(struct vc_data *c, int mode)
{
if (c->vc_mode != KD_TEXT)
return;

vgacon_restore_screen(c);

switch (mode) {
Expand Down Expand Up @@ -1318,7 +1321,7 @@ static int vgacon_scroll(struct vc_data *c, int t, int b, int dir,
unsigned long oldo;
unsigned int delta;

if (t || b != c->vc_rows || vga_is_gfx)
if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT)
return 0;

if (!vga_hardscroll_enabled || lines >= c->vc_rows / 2)
Expand Down

0 comments on commit 60ce215

Please sign in to comment.