diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-10-23 16:37:08 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-10-27 11:03:12 -0400 |
commit | 12900b1a2431946f59e4973729280296a4a9cffd (patch) | |
tree | f02bf0b37e361e771b9f44ed9d0e03eedccaad68 /vgasrc/vgabios.c | |
parent | 63977905a05fe36deac4aee9ef28bec8a13be402 (diff) | |
download | seabios-12900b1a2431946f59e4973729280296a4a9cffd.tar.gz |
vgabios: Fill in available legacy modes in video_func_static at runtime
Instead of hard coding the list of modes, fill them in from the list
of supported modes.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.c')
-rw-r--r-- | vgasrc/vgabios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c index 9b94f4d6..858f415a 100644 --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -1076,8 +1076,8 @@ handle_101a(struct bregs *regs) } -static struct video_func_static static_functionality VAR16 = { - .modes = 0x0fe0ff, +struct video_func_static static_functionality VAR16 = { + .modes = 0x00, // Filled in by stdvga_build_video_param() .scanlines = 0x07, // 200, 350, 400 scan lines .cblocks = 0x02, // mamimum number of visible charsets in text mode .active_cblocks = 0x08, // total number of charset blocks in text mode |