diff -urN linux-2.4.20-gentoo-r5/drivers/video/Config.in linux-2.4.20-gentoo-r5_patched/drivers/video/Config.in --- linux-2.4.20-gentoo-r5/drivers/video/Config.in 2003-06-09 18:08:56.000000000 -0500 +++ linux-2.4.20-gentoo-r5_patched/drivers/video/Config.in 2003-06-09 14:03:02.000000000 -0500 @@ -101,7 +101,10 @@ tristate ' TGA framebuffer support' CONFIG_FB_TGA fi if [ "$CONFIG_X86" = "y" ]; then - bool ' VESA VGA graphics console' CONFIG_FB_VESA + tristate ' VESA VGA graphics console' CONFIG_FB_VESA + if [ "$CONFIG_FB_VESA" != "n" ]; then + int ' remap x times the graphics memory needed' CONFIG_FB_VESA_VIDSIZE 1 + fi tristate ' VGA 16-color graphics console' CONFIG_FB_VGA16 tristate ' Hercules mono graphics console (EXPERIMENTAL)' CONFIG_FB_HGA define_bool CONFIG_VIDEO_SELECT y diff -urN linux-2.4.20-gentoo-r5/drivers/video/vesafb.c linux-2.4.20-gentoo-r5_patched/drivers/video/vesafb.c --- linux-2.4.20-gentoo-r5/drivers/video/vesafb.c 2003-06-09 18:08:56.000000000 -0500 +++ linux-2.4.20-gentoo-r5_patched/drivers/video/vesafb.c 2003-06-09 14:04:59.000000000 -0500 @@ -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_width * screen_info.lfb_height * video_bpp / 8; + video_size = screen_info.lfb_width * screen_info.lfb_height * video_bpp / 8 * CONFIG_FB_VESA_VIDSIZE; video_visual = (video_bpp == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;