Mail Archives: djgpp/1999/02/27/22:41:45
At 01:16 AM 2/26/99 -0300, you wrote:
> Hi all, i'm having some problem with my Get_Palette function
>void plsSet_Pal(const unsigned char ucCol, const unsigned char ucR,
> const unsigned char ucG, const unsigned char ucB)
>{
> outportb(0x03C8,ucCol);
> outportb(0x03C9,ucR);
> outportb(0x03C9,ucG);
> outportb(0x03C9,ucB);
>} &ucR,
> & &ucB)
>{
> outportb(0x03C7,ucCol);
> ucR = inportb(0x03C9);
> ucG = inportb(0x03C9);
> ucB = inportb(0x03C9);
>}
> It was to give me values from port 0x3C9 giving reg, green and
>blue, but it is just returning the first one. What is wrong ? Set_Pal works
> fine... Do you have any function like that ? I wanna some help
>in this subject... thanks Luiz Fernando luisoft AT myway DOT com DOT br
I haven't a clue, but I can tell you that you may want to lose the HTML and
Hungarian notation :-)
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|
- Raw text -