delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/30/19:01:08

Message-ID: <35203D66.991B872C@sprynet.com>
Date: Mon, 30 Mar 1998 16:48:38 -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>
NNTP-Posting-Host: 192.41.92.11
Lines: 42
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?

ricki lee king wrote:
> 
> here is a little about palette for images.
> maybe it will help you.
> 
> PALETTE pal;
>   BITMAP *splashbx = load_bmp("splashbx.bmp",pal);
>   set_pallete (pal);
> 
> the last line corrects the palette.
> bye
> 
> At 02:18 PM 3/30/98 -0800, Ishpeck wrote:
> >I created a .FLI file with Animagician
> >and played it in my program using Allegro.
> >
> >The problem is the color palette is all
> >different, so my yellows are purple and
> >my reds are yellow and so on...
> >
> >The question is:
> >
> >Where can I find a .FLI editor that
> >can change palettes, or, how can I
> >change the palette when I load the
> >.FLI?
> >
> >

- Raw text -


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