cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/07:41:01

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: Mon, 10 Mar 1997 11:10:43 +0100
Organization: Stockholm University
Lines: 29
Distribution: world
Message-ID: <Pine.SOL.3.91N2x.970310110907.14527B-100000@mastermind.nada.kth.se>
References: <33232BE7 DOT 2F3D AT nada DOT kth DOT se> <3323C8DB DOT 308F AT eps DOT agfa DOT be>
NNTP-Posting-Host: mastermind.nada.kth.se
Mime-Version: 1.0
In-Reply-To: <3323C8DB.308F@eps.agfa.be>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> [Snip]
> 
> > 
> >   int mode = 0x4101;
> > 
> >   VBE_getmodeinfo(mode, &modeinfo);
> >   if(modeinfo.ModeAttributes & 0x8)
> >     printf("Linear frame buffer found\n");
> >   else {
> >     printf("Linear frame buffer not found\n");
> >     exit(1);
> >   }
> > 
> 
> [Snip]

> The problem might be that you're assuming mode 640x480 is 0x4101. While 
> this was usually true for Vesa 1.2, this is not at all guaranteed in Vesa 
> 2.0. The correct way to get the modenumber of the mode you're looking for 
> is requesting the mode-table, and scanning that for the desired 
> resolution & bits per pixel, thus giving you the right modenumber.
> 

no, I disagree. Have a look at Vesa's information on 2.0. It should 
always be the same mode-numbers to use. And I see that I've entered the 
correct mode, it's just the set-pixel-function that doesn't work.


Niklas

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019