delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/26/10:50:03

Message-Id: <199902261550.KAA14681@delorie.com>
From: "Laurynas Biveinis" <lauras AT softhome DOT net>
To: djgpp AT delorie DOT com
Date: Fri, 26 Feb 1999 16:53:00 +0100
MIME-Version: 1.0
Subject: Re: graphics function
In-reply-to: <01be613e$b9a7c880$72faf8c8@aguia>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019