Mail Archives: djgpp/1997/11/28/14:32:34
From: | killferfun AT aol DOT com (KillFerFun)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | More pallete problems...
|
Date: | 28 Nov 1997 18:44:57 GMT
|
Lines: | 24
|
Message-ID: | <19971128184400.NAA07879@ladder01.news.aol.com>
|
NNTP-Posting-Host: | ladder01.news.aol.com
|
Organization: | AOL http://www.aol.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Okay, I've run into yet another problem concerning palletes.
(I don't think they'll ever end)
I took a suggestion and got FixPal to organize a common pallete among several
TGA images that I display on the screen. But now I need to use the old color
set (0-Black 1-Blue 2-Green, etc) for certain purposes. Is there any way to
save the original pallete or is there a function I can use to locate these
colors in my custom pallete? I tried to modify the pallete like this:
RGB *green = { 0,63,0} ;
set_color(2, green);
But it doesn't turn out green, instead I get a strange bluish color. Am I doing
something wrong?
Any help/advice/comments/suggestions much appreciated...
--
_-_-_-_-_-_-_-_
--------------------------------------------------------------
The very first essential for success is a perpetually constant
and regular employment of violence.
KillFerFun AT aol DOT com ==> http://members.aol.com/killferfun/perdition.htm
- Raw text -