]> xenbits.xensource.com Git - seabios.git/commit
vgabios: Fix generating modes list for static_functionality
authorSteven Price <steven@ecrips.co.uk>
Sat, 12 Oct 2024 11:34:34 +0000 (11:34 +0000)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 25 Oct 2024 15:55:25 +0000 (11:55 -0400)
commit62a1429ec1ec67f14c039d97627a6a7ef70a983c
tree7ef52dd2de58ffa070bf3abea1ce8b4ac8b45a58
parent2424e4c04aa30d90e85073ea41d18a7845460783
vgabios: Fix generating modes list for static_functionality

Accessing the data in the vga_modes array requires using GET_GLOBAL(),
and the bits set in the bit array should correspond to the modes, not
the indexes in vga_modes.

With this change the modes calculated matches the expected value of
0xfe0ff.

Fixes: 12900b1a2431 ("vgabios: Fill in available legacy modes in video_func_static at runtime")
Signed-off-by: Steven Price <steven@ecrips.co.uk>
vgasrc/stdvgamodes.c