From: Dominique DOT Biesmans AT ping DOT be (Dominique Biesmans) Newsgroups: comp.os.msdos.djgpp Subject: Re: Silly newbie question - Allegro/palletes Date: Fri, 21 Mar 1997 19:12:37 GMT Organization: EUnet Belgium, Leuven, Belgium Lines: 17 Message-ID: <3332dc3f.7959393@news.ping.be> References: <3332BFFF DOT 1569 AT interlog DOT com> NNTP-Posting-Host: dialup024.leuven.eunet.be To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Fri, 21 Mar 1997 12:06:07 -0500, Adam Lawrence wrote: >G'day all. > > I'm programming away in DJGPP using Allegro and sprites. I draw the >sprites (for now) using the cheezy Windows Paint program. I cannot seem >to load or create a pallete that displays the colors of all the sprites >correctly. My 'spaceship' looks fine but its shots, instead of being >yellow and red, are an odd-shade of purple. Is there some sort of >workaround for this? You have to grab the palette in allegro's grabber (it is saved in the pcx file you created with your paint program) and set it with set_palette when you initialize your program. Dominique Biesmans