Re: Simple program cwitching thru all video-modes craps-out ...
- From: "R.Wieser" <spamtrap@xxxxxxxxxx>
- Date: Wed, 31 Aug 2005 17:32:08 +0000 (UTC)
Jim Leonard <spamtrap@xxxxxxxxxx> schreef in berichtnieuws
1125437786.183808.222900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Jim,
[snip]
> 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:
I would love it to be able to check which modi are available. Alas, there
is no standard graphics-bios command (int 10h) for that. And thus my idea
to set-and-check. Strange though, that the driver for a specific video-card
does not have the knowledge about which modi can, and cannot be set ....
Sometimes the ignorance of people creating software for <you name it> for
the obvious amazes me.
> 1. Use VESA mode query commands to determine modes and capabilities
Actually, I allready thought of that, and am currently trying to see what I
can do with it. Although I have Ralf Brown's Interrupt-List next to me it
some of the stuff is not really clear to me. Int 10h, ax=4f01h : "Window
granularity" [04h,05h] seems to be another name for "bank size". But what
than does "size of bank" [1Ch] indicate ? And what does "size of window"
[06h,07h] indicate ? Not the actual size of the window, as it doesn't
change when I select another resolution ....
Oh, well, luckily Google is at hand, and I'm sure I will be able to figure
it out eventually.
> 2. Fall back to stock VGA 640x480x16 if VESA BIOS is not present
Funny : that was the very modus I started from (and wanted to leave in
search for "better" resolutions).
Thanks for your response.
Rudy Wieser
.
- Follow-Ups:
- Re: Simple program cwitching thru all video-modes craps-out ...
- From: Jim Leonard
- Re: Simple program cwitching thru all video-modes craps-out ...
- Next by Date: Re: Simple program cwitching thru all video-modes craps-out ...
- Next by thread: Re: Simple program cwitching thru all video-modes craps-out ...
- Index(es):
Relevant Pages
|