| delorie.com/archives/browse.cgi | search |
| From: | Endlisnis <s257m AT unb DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: -= Hi RES GraphicS =- , This is one way |
| Date: | Mon, 07 Sep 1998 19:19:06 -0300 |
| Organization: | NBTel Internet |
| Lines: | 22 |
| Message-ID: | <35F45BDA.90125CB1@unb.ca> |
| References: | <35DA143C DOT CC91D2A9 AT hotmail DOT com> <35DA884C DOT 3DAF6A05 AT geocities DOT com> <35F32D5F DOT 1742 AT club-internet DOT fr> |
| NNTP-Posting-Host: | fctnts05c61.nbnet.nb.ca |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Ludvig Larsson wrote:
> Hi.
> The mode for 640x480x16bit is in VESA 1.2: 0x111 But when I read Ralph
> Browns interruptlist there was marked that Diamond Stealth used 0x211.
> A friend of mine didn't get my code working on his Matrox VESA 2.0 card
> and well the workaround was to only to add 0x4000 to the mode(actually
> this sets the lineframe buffer, but it works anyway, If anybody knows
> Why...).
This is because you do not ask the graphics card which mode-numbers it uses.
There is a function (I believe #0) that retrieves a list of modes that are
supported. You can then use another function (i think #1) to check the
resolution & color depth of each mode. You can use this to make your program
work on ANY card seeing as your fix will not work on every card.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |