Mail Archives: djgpp/1999/04/13/17:21:40

From: Some guy with a computer <bernhardt AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Color map needed, please!
Date: Mon, 12 Apr 1999 16:42:05 -0700
References: <8D53104ECD0CD211AF4000A0C9D60AE3012D84C0 AT probe-2 DOT acclaim-euro DOT net>
X-Posted-Path-Was: not-for-mail
X-ELN-Date: 12 Apr 1999 23:42:08 GMT
X-ELN-Insert-Date: Mon Apr 12 16:45:13 1999
Organization: X-Ware
Lines: 26
Mime-Version: 1.0
Message-ID: <>
X-Mailer: Mozilla 4.08 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How do I find out how to set up a palette (in 256 color mode)? Is there a
section in the docs, or a web page for it?

Shawn Hargreaves wrote:

> bernhardt AT earthlink DOT net writes:
> > 1) I REALLY need some info on the colors in Allegro. I have had to
> > get my colors so far by trial and error. There must be an easier way.
> > Is there an equation for it or something?
> If you are using a truecolor mode, just call the makecol() function
> to specify any color you like. In 256 color modes, you need to set
> a palette to say which 256 colors the graphics hardware should use.
> You could use the builtin desktop_palette, or load one from a bitmap
> file, or generate on in your code. See ex4.c, ex15.c, and ex29.c.
> > 2) The file size is ludicrous!
> Assuming that you've read the relevant sections of the djgpp and
> Allegro FAQ lists and are still not happy, that's just tough.
> Both djgpp and Allegro do a lot of stuff for you, and they can't
> do that without taking up space. Much more space than a stupid
> 16 bit program that doesn't do so many cool things.
>         Shawn Hargreaves.

- Raw text -

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