patch-2.4.21 linux-2.4.21/drivers/video/vesafb.c
Next file: linux-2.4.21/drivers/video/vga.h
Previous file: linux-2.4.21/drivers/video/tdfxfb.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/drivers/video/vesafb.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/drivers/video/vesafb.c linux-2.4.21/drivers/video/vesafb.c
@@ -520,7 +520,7 @@
video_width = screen_info.lfb_width;
video_height = screen_info.lfb_height;
video_linelength = screen_info.lfb_linelength;
- video_size = screen_info.lfb_size * 65536;
+ video_size = screen_info.lfb_width * screen_info.lfb_height * video_bpp;
video_visual = (video_bpp == 8) ?
FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)