www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/22/15:49:42

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
<guruman AT interlog DOT com> 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

- Raw text -


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