www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/25/22:33:38

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Pallete problems...
Date: 25 Feb 1997 20:55:40 GMT
Organization: Oxford University
Lines: 21
Message-ID: <5evjkc$gu@news.ox.ac.uk>
References: <199702251828 DOT SAA09913 AT post DOT dialin DOT co DOT uk>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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