From: "Luiz Fernando Estivalet" To: Subject: graphics function Date: Fri, 26 Feb 1999 01:16:04 -0300 Message-ID: <01be613e$b9a7c880$72faf8c8@aguia> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01BE6125.945A9080" 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
Hi all,
 
    i'm = having some=20 problem with my Get_Palette function
 
void plsSet_Pal(const = unsigned char=20 ucCol, const unsigned char=20 ucR,
           = ;    =20 const unsigned char ucG, const unsigned char ucB)
{
 =20 outportb(0x03C8,ucCol);
  outportb(0x03C9,ucR);
 =20 outportb(0x03C9,ucG);
  = outportb(0x03C9,ucB);
}
 
void plsGet_Pal(const = unsigned char=20 ucCol, unsigned char=20 &ucR,
          =      =20 unsigned char &ucG,  unsigned char &ucB)
{
 =20 outportb(0x03C7,ucCol);
  ucR =3D inportb(0x03C9);
  ucG = =3D=20 inportb(0x03C9);
  ucB =3D = inportb(0x03C9);
}
 
 
 
    = 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...
    Do = you have any=20 function like that ?
    I = wanna some help=20 in this subject... thanks 
 
Luiz Fernando
luisoft AT myway DOT com DOT br
 
 
 
 
 
 
------=_NextPart_000_0008_01BE6125.945A9080--