From: lolo Newsgroups: comp.os.msdos.djgpp Subject: problem with bitmaps & optimized palette under allegro Date: Wed, 15 Dec 1999 08:47:58 +0100 Organization: Wanadoo, l'internet avec France Telecom Lines: 15 Message-ID: <385747AE.E8045C3@wanadoo.fr> NNTP-Posting-Host: b7rennesla-1-3.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: wanadoo.fr 945244141 17517 193.250.27.3 (15 Dec 1999 07:49:01 GMT) X-Complaints-To: abuse AT wanadoo DOT fr NNTP-Posting-Date: 15 Dec 1999 07:49:01 GMT X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: fr-FR,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I use Allegro library to to display bitmaps that I previously store in a .dat file ... my bitmaps are in 256 colors file format but with optimized palette, in the dat file I store the bitmap and the palette under my main program I initialise my screen in 16milions colors and when I try to render my bitmaps with their own optimized palette the colors are not matching exactly... I've seen in the source code of allegro that for palette it make an approximation of the color by reducing the value stored in the palette (so the values are from 0 to 63)... How can I avoid this so I will have full gradients on my screen.. I can of course use 16milions colors bitmaps to avoid palette manipulations, but I'm short of space.... If anybody know how to manage this .... thank's by advance...