patch-2.1.107 linux/drivers/video/fbcon-cfb16.c

Next file: linux/drivers/video/fbcon-cfb2.c
Previous file: linux/drivers/video/fbcon-afb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.106/linux/drivers/video/fbcon-cfb16.c linux/drivers/video/fbcon-cfb16.c
@@ -37,7 +37,7 @@
 
 void fbcon_cfb16_setup(struct display *p)
 {
-    p->next_line = p->var.xres_virtual<<1;
+    p->next_line = p->line_length ? p->line_length : p->var.xres_virtual<<1;
     p->next_plane = 0;
 }
 
@@ -181,7 +181,7 @@
 
 struct display_switch fbcon_cfb16 = {
     fbcon_cfb16_setup, fbcon_cfb16_bmove, fbcon_cfb16_clear, fbcon_cfb16_putc,
-    fbcon_cfb16_putcs, fbcon_cfb16_revc
+    fbcon_cfb16_putcs, fbcon_cfb16_revc, NULL
 };
 
 

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