Message-Id: <3.0.6.32.19990227224137.0085daa0@pop.globalserve.net> X-Sender: derbyshire AT pop DOT globalserve DOT net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Sat, 27 Feb 1999 22:41:37 -0500 To: djgpp AT delorie DOT com From: Paul Derbyshire Subject: Re: graphics function In-Reply-To: <01be613e$b9a7c880$72faf8c8@aguia> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com 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|