Check bit D0 ("Mode supported by hardware configuration") in the
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 3 Nov 2007 22:24:53 +0000 (22:24 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 3 Nov 2007 22:24:53 +0000 (22:24 +0000)
commit369aceda3d9c51df25c5eac532005b174491f109
tree041096cd78c636161a1a1759486262aed8071f4a
parent1e96b45606f307c25bb4e19ab466244e4d3f49d5
Check bit D0 ("Mode supported by hardware configuration") in the
mode attributes field and reject video modes for which it isn't
set. I don't know why this was always commented out but X checks
it too so I guess it's safe.

The bit is unset e.g. for video modes which are not supported due
to not enough memory being assigned to an onboard graphics adapter
in the BIOS, or if a mode is supported by a laptop's graphics card
but not by its screen.

Reported-by: Joseph Garcia <bsd_usr@yahoo.com>
sys/dev/video/i386/vesa/vesa.c