Mail Archives: djgpp/1997/02/25/22:33:38
Lee Simons (lee AT dialin DOT co DOT uk) wrote:
: Hello everyone...
: I'm new to Allegro and I've been having problems with palletes.
: I've got a small program which displays a graphic - waits for a key to be
: entered, and then draws another two bitmaps to the screen, one smaller one
: ontop of another. But, the palletes are all messed up and I was wondering
: how I can change palletes within a function of failing that in different
: functions. So that palletes will be loaded for each image. I've included
: my source, and any examples would really help me a lot. Sorry if this
: seems like a stupid question or if it's in the faq's but I'm lost. =)
You need to call set_palette(palette) whenever you want to change the
palette. But I get the impression that you're trying to use different
palettes in different areas of the screen - AFAIK this isn't possible
in the standard 256 colour modes. You'll need to use the same palette
for all your images.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -