Mail Archives: djgpp/1998/03/31/18:01:56
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 -