delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/18/09:30:22

From: Fabrice ILPONSE <fabrice AT trash DOT lip6 DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: vesa 2.0. protected mode interface?!
Date: Thu, 18 Dec 1997 11:43:53 +0100
Organization: Universites Paris VI/Paris VII - France
Lines: 33
Message-ID: <3498FE69.6324@trash.lip6.fr>
References: <3492B3CA DOT 6248D49 AT mailto DOT de> <34951818 DOT 2E80 AT trash DOT lip6 DOT fr> <3498354d DOT 6315164 AT news DOT wxs DOT nl>
NNTP-Posting-Host: asim.lip6.fr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Xerxes wrote:
> 
> On Mon, 15 Dec 1997 12:44:24 +0100, Fabrice ILPONSE
> <fabrice AT trash DOT lip6 DOT fr> wrote:
> 
> >> i've set vesa mode 101h with linear frame buffer. know i want
> >> to change the palette! it seem that i must use the protected
> >> mode interface. how do i set and use it under djgpp?
> >
> >In which mode are you 8bits or 15bits and up ?
> In VESA mode 101 is 8 bit...

	Ok. sorry i didn't notice the mode number.

	You can use the common vga fonctions. no need of interrupts.

	use:
		outportb(X,color number);
		outportb(Y,red level);
		outportb(Y,green level);
		outportb(Y,blue level);

	i think X=0x3c7 and Y=0x3c9 or 0x3c8. can someone correct me if i'm
wrong!! :)

-- 
	^ ^ ^
	| | |
	+-+-+	Fabrice ILPONSE
	  |	<fabrice AT asim DOT lip6 DOT fr>
	  |
	  |
	  -

- Raw text -


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