cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/10/13:31:45

From: Mark J Gallagher <mjgallagher AT taz DOT dra DOT hmg DOT gb>
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> <zGuvF8AwsTP0EwnI AT talula DOT demon DOT co DOT uk>
Reply-To: mjgallagher AT taz DOT dra DOT hmg DOT gb
NNTP-Posting-Host: 146.80.70.70
Mime-Version: 1.0
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


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