www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/06/20:47:54

From: Ludvig Larsson <ludvig AT club-internet DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 640 x 400
Date: Mon, 07 Sep 1998 02:39:51 +0200
Organization: FAAS/GoldHart
Lines: 27
Message-ID: <35F32B57.1A78@club-internet.fr>
References: <01bdd031$0b208f20$0818d3d4 AT billy> <35EB2179 DOT 8A0437FF AT btinternet DOT com>
Reply-To: ludvig AT club-internet DOT fr
NNTP-Posting-Host: angouleme1-154.club-internet.fr
Mime-Version: 1.0
NNTP-Posting-Date: 7 Sep 1998 00:41:38 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Are you really sur that you need all that?

I'm just setting the mode, and as it is a graphic mode, well
there wont be a text mode...

And this leftshifting?

The banks are 0,1,2,3 etc, as many as you need.

BTW, I had some problem with those VESA 1.2 modes because they are Not
always compatible with VESA 2.0 One thing that worked for me was to set
the bit in the for the lineframe buffer(why it works, I have no idéa,
but it does, using banks). So mode 0x100 will be 0x4100 etc.
The best thing offcourse, to make the code work on well almost all cards
is to scan the card for the desired graphic mode.

Hope I got the Question right and so.

Ludvig

Ps. to plot a pixel: (in 640xNNN in 256color mode)

bank=(x+y*640)>>16
offset=(x+y*640)-bank<<16
set bank to 'bank' and
put the colorvalue at 0xA0000+offset
:)

- Raw text -


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