Message-Id: <3.0.16.19971010001300.4ca77178@hem1.passagen.se> Date: Fri, 10 Oct 1997 00:13:14 -0400 To: djgpp AT delorie DOT com From: Peter Palotas Subject: Re: Allegro Colors with normal unchanged pallete? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk At 19.03 1997-10-09 GMT, you wrote: >Hi!, > I was wondering if theres any where or anybody that knows where i can >get hold of the entire list of color codes for the Allegro unchanged >pallete. How about something like: PALETTE p; get_palette(p); Then to get the red components of color 5 you would simply write int r = p[5].r; (Atleast I think this is how you do, if this doesn't work, (I haven't tested it) please let me know) -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se -- ***************************************************** * A brief description of DJGPP: * * NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! * *****************************************************