Mail Archives: djgpp/1999/02/26/10:50:03
From: "Luiz Fernando Estivalet" <luisoft AT myway DOT com DOT br>
To: <djgpp AT delorie DOT com>
Subject: graphics function
Date sent: Fri, 26 Feb 1999 01:16:04 -0300
Send reply to: djgpp AT delorie DOT com
Your code runs for me without problems. (Using C++, of course)
Maybe you should try using pointers instead of references like this:
void plsGet_Pal(const unsigned char ucCol, unsigned char *ucR,
unsigned char *ucG, unsigned char *ucB)
{
outportb(0x03C7,ucCol);
*ucR = inportb(0x03C9);
*ucG = inportb(0x03C9);
*ucB = inportb(0x03C9);
}
- Raw text -