Mail Archives: djgpp/1997/12/18/12:17:34
Fabrice ILPONSE wrote:
> 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>
> |
> |
> -
X=0x3c8 and Y=0x3c9.
- Raw text -