Re: Simple program cwitching thru all video-modes craps-out ...



R.Wieser wrote:
> I thought I could check all available video-modi for my card by simply
> switching to them, and than compare the current video-mode with the one I
> just tried to set. Alas, when I ran this (Under Win98) it crashed when
> setting several mody, under which mode 7 (which is a perfectly normal mode).

Mode 7 is EGA mono. This has always always locked up every single one
of my VGA-based systems for the last two decades if I switched to it
accidentally (in fact, I believe it locked up my CGA systems as well!).

Trying to SET all modes is not safe. QUERYING them is. For non-VESA
modes, there are various ways to query, but since you are programming
for a modern environment it is probably safer to:

1. Use VESA mode query commands to determine modes and capabilities
2. Fall back to stock VGA 640x480x16 if VESA BIOS is not present

Hope that helps.

.