Mail Archives: djgpp/1999/02/25/23:19:36
From: | "Luiz Fernando Estivalet" <luisoft AT myway DOT com DOT br>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | graphics function
|
Date: | Fri, 26 Feb 1999 01:16:04 -0300
|
Message-ID: | <01be613e$b9a7c880$72faf8c8@aguia>
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.71.1712.3
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.71.1712.3
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01BE6125.945A9080
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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);
}
void plsGet_Pal(const unsigned char ucCol, unsigned char &ucR,
unsigned char &ucG, unsigned char &ucB)
{
outportb(0x03C7,ucCol);
ucR =3D inportb(0x03C9);
ucG =3D inportb(0x03C9);
ucB =3D 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
------=_NextPart_000_0008_01BE6125.945A9080
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#c0c0c0>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2> i'm =
having some=20
problem with my Get_Palette function</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>void plsSet_Pal(const =
unsigned char=20
ucCol, const unsigned char=20
ucR,<BR>  =
; =20
const unsigned char ucG, const unsigned char ucB)<BR>{<BR> =20
outportb(0x03C8,ucCol);<BR> outportb(0x03C9,ucR);<BR> =20
outportb(0x03C9,ucG);<BR> =
outportb(0x03C9,ucB);<BR>}</FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>void plsGet_Pal(const =
unsigned char=20
ucCol, unsigned char=20
&ucR,<BR> =
=20
unsigned char &ucG, unsigned char &ucB)<BR>{<BR> =20
outportb(0x03C7,ucCol);<BR> ucR =3D inportb(0x03C9);<BR> ucG =
=3D=20
inportb(0x03C9);<BR> ucB =3D =
inportb(0x03C9);<BR>}<BR></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2> =
<FONT=20
color=3D#000000>It was to give me values from port 0x3C9 giving reg, =
green and=20
blue, but it is just returning the first one. What is wrong ? Set_Pal =
works=20
fine...</FONT></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2> Do =
you have any=20
function like that ?</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2> I =
wanna some help=20
in this subject... thanks</FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Luiz Fernando</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:luisoft AT myway DOT com DOT br">luisoft AT myway DOT com DOT br</A></FONT></DIV=
>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 face=3DArial =
size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0008_01BE6125.945A9080--
- Raw text -