| delorie.com/archives/browse.cgi | search |
| From: | Niklas <d95-nlu AT nada DOT kth DOT se> |
| Newsgroups: | comp.os.msdos.djgpp,comp.graphics.algorithms |
| Subject: | Re: VESA 2.0 and NEAR PTR |
| Date: | Thu, 13 Mar 1997 16:43:53 +0100 |
| Organization: | Solace Computer Society |
| Message-ID: | <332820B9.6C1B@nada.kth.se> |
| References: | <33232BE7 DOT 2F3D AT nada DOT kth DOT se> <3327780b DOT 7631253 AT news DOT erols DOT com> |
| NNTP-Posting-Host: | venus.nada.kth.se |
| Mime-Version: | 1.0 |
| Lines: | 19 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
enigma wrote:
> > int mode = 0x4101;
> actually .. send in 101.. much better..
> > VBE_getmodeinfo(mode, &modeinfo);
> > if(modeinfo.ModeAttributes & 0x8)
> > printf("Linear frame buffer found\n");
> > else {
> > printf("Linear frame buffer not found\n");
> > exit(1);
> > }
but I want a linear frame buffer and that's what the "4" means in 0x4101
the _only_ problem with this code is that it doesn't put a pixel on
screen as it should.
Niklas
------------------------------------------------------------------------d95-nlu AT nada DOT kth DOT se
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |