delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/31/18:01:56

Message-ID: <35217510.B6BF3C54@sprynet.com>
Date: Tue, 31 Mar 1998 14:58:24 -0800
From: Ishpeck <aTedjamulia AT sprynet DOT com>
Organization: Lunaticnologies
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help: Flic Palette in Allegro
References: <3 DOT 0 DOT 5 DOT 32 DOT 19980330175544 DOT 007e1320 AT pop DOT iquest DOT net> <35203D66 DOT 991B872C AT sprynet DOT com> <3521161E DOT 3131 AT plinet DOT com>
NNTP-Posting-Host: 192.41.92.43
Lines: 45
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Yes, I could set the entire palette to the palette
of the flic... but, I don't want to.

Is there a way to change the palette of a bitmap
in the memory?  

Say, for instance, I wanted to print two bitmaps
simultaneously and each of them had a different
palette... could I change the one, or the other
so that the palette of one matched the other?

Could I convert the palette of one bitmap before
I printed it, so that it could match the palette
of the other one?

Or am I just hoping for things that cannot be?

Charles Terry wrote:
> 
> Ishpeck wrote:
> >
> > Well, here's the deal...
> >
> > I start the program in whatever the default
> > palette is when I set_gfx_mode(GFX_VESA, 800, 600, 0, 0);
> > I then proceede to use  textout  to print
> > a bit of text, and then play my 320x200 Flic in a
> > little corner of the screen.
> > The problem is, the flic is using a different color palette,
> > and so the colors are all screwed up.  I was wondering
> > if there is a way to change the palette for just that
> > little portion of the screen, or maybe change the palette
> > of each frame before I print it... or do I have to remake
> > my whole flic?
> >
> No the palette is set in the graphics driver
> so if you change it the whole display changes
> but you seem to be indicating that the rest of the
> screen at this point is unused except for the textout-?
> 
> I think you can use the grabber utility to get the
> pallete from your flic and package both the flic and
> pallete in a data file and load both at runtime
> 
> Charles Terry

- Raw text -


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