diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/console/vgacon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index d0d2733ef479..2460b82a1d93 100644 --- a/drivers/video/console/vgacon.c +++ b/drivers/video/console/vgacon.c | |||
@@ -660,6 +660,9 @@ static void vgacon_set_cursor_size(int xpos, int from, int to) | |||
660 | 660 | ||
661 | static void vgacon_cursor(struct vc_data *c, int mode) | 661 | static void vgacon_cursor(struct vc_data *c, int mode) |
662 | { | 662 | { |
663 | if (c->vc_mode != KD_TEXT) | ||
664 | return; | ||
665 | |||
663 | vgacon_restore_screen(c); | 666 | vgacon_restore_screen(c); |
664 | 667 | ||
665 | switch (mode) { | 668 | switch (mode) { |
@@ -1318,7 +1321,7 @@ static int vgacon_scroll(struct vc_data *c, int t, int b, int dir, | |||
1318 | unsigned long oldo; | 1321 | unsigned long oldo; |
1319 | unsigned int delta; | 1322 | unsigned int delta; |
1320 | 1323 | ||
1321 | if (t || b != c->vc_rows || vga_is_gfx) | 1324 | if (t || b != c->vc_rows || vga_is_gfx || c->vc_mode != KD_TEXT) |
1322 | return 0; | 1325 | return 0; |
1323 | 1326 | ||
1324 | if (!vga_hardscroll_enabled || lines >= c->vc_rows / 2) | 1327 | if (!vga_hardscroll_enabled || lines >= c->vc_rows / 2) |