|
@@ -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) {
|
|
@@ -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)
|