Re: Simple program cwitching thru all video-modes craps-out ...
- From: "Jim Leonard" <spamtrap@xxxxxxxxxx>
- Date: Wed, 31 Aug 2005 00:19:19 +0000 (UTC)
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.
.
- References:
- Simple program cwitching thru all video-modes craps-out ...
- From: R.Wieser
- Simple program cwitching thru all video-modes craps-out ...
- Prev by Date: Re: Writing spaghetti code for obfuscation/encryption
- Next by Date: Re: Writing spaghetti code for obfuscation/encryption
- Previous by thread: Re: Simple program cwitching thru all video-modes craps-out ...
- Next by thread: www.devicetools.com - rembedded software resources
- Index(es):