summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2013-11-28 15:56:25 +0100
committerMichael Brown2013-11-28 15:59:48 +0100
commitd4f7816de7dda2cb1477014c9dacb9247bc81a20 (patch)
treefd2b8cf21074bca80eb3401d196f47bdd1951b21 /src/Makefile.housekeeping
parent[vesafb] Return meaningful error when no suitable mode is found (diff)
downloadipxe-d4f7816de7dda2cb1477014c9dacb9247bc81a20.tar.gz
ipxe-d4f7816de7dda2cb1477014c9dacb9247bc81a20.tar.xz
ipxe-d4f7816de7dda2cb1477014c9dacb9247bc81a20.zip
[vesafb] Select an optimal mode, rather than the first acceptable mode
There is no requirement for VBE modes to be listed in increasing order of resolution. With the present logic, this can cause e.g. a 1024x768 mode to be selected if the user asks for 640x480, if the 1024x768 mode is earlier in the mode list. Define a scoring system for modes as score = ( width * height - bpp ) and choose the mode with the lowest score among all acceptable modes. This should prefer to choose the mode closest to the requested resolution, with a slight preference for higher colour depths. Reported-by: Robin Smidsrød <robin@smidsrod.no> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
0 files changed, 0 insertions, 0 deletions