From: Mark J Gallagher Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Colors with normal unchanged pallete? Date: Fri, 10 Oct 1997 15:02:20 -0700 Organization: Defence Research Agency Message-ID: <343EA5EC.211A@taz.dra.hmg.gb> References: <01bcd4e5$8993dee0$813863c3 AT rossa> Reply-To: mjgallagher AT taz DOT dra DOT hmg DOT gb NNTP-Posting-Host: 146.80.70.70 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Shawn Hargreaves wrote: > > Ross Boast writes: > >Remember i'm talking about the colors which apply when you have the > >default/standard colors, i haven't touched the palette yet , i have no > >need for what i want to do :). > > Bad move. If you don't set the palette yourself, you will get whatever > colors your video BIOS decides to use. This is _usually_ a standard > layout, but not always: I've seen some cards and VESA drivers that do > completely different things. You really ought to set the palette > yourself, so you know for sure what the colors will be... > > -- > Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ > Beauty is a French phonetic corruption of a short cloth neck ornament. If you've been using the colours assigned by default: use a screen grab program to save the palette in PCX format; you can then use a utility which comes with Allegro to get the palette from the PCX file. Save the palette as a datafile, and use this datafile to initialise the palette from your code.