patch-2.1.116 linux/drivers/video/vgacon.c

Next file: linux/fs/autofs/autofs_i.h
Previous file: linux/drivers/video/tgafb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.115/linux/drivers/video/vgacon.c linux/drivers/video/vgacon.c
@@ -453,6 +453,8 @@
 	 */
 	vga_video_num_columns = c->vc_cols;
 	vga_video_num_lines = c->vc_rows;
+	if (vga_is_gfx)
+		return 1;
 	scr_memcpyw_to((u16 *) c->vc_origin, (u16 *) c->vc_screenbuf, c->vc_screenbuf_size);
 	return 0;	/* Redrawing not needed */
 }
@@ -933,6 +935,8 @@
 		c->vc_x = ORIG_X;
 		c->vc_y = ORIG_Y;
 	}
+	if (vga_is_gfx)
+		return;
 	scr_memcpyw_from((u16 *) c->vc_screenbuf, (u16 *) c->vc_origin, c->vc_screenbuf_size);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov