From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: MAJOR ALLEGRO PALLETE PROBLEM Date: 8 Jun 2001 11:20:40 GMT Organization: Aachen University of Technology (RWTH) Lines: 22 Message-ID: <9fqce8$mc0$1@nets3.rz.RWTH-Aachen.DE> References: <3B2028D1 DOT C3848A17 AT home DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 991999240 22912 137.226.32.75 (8 Jun 2001 11:20:40 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 8 Jun 2001 11:20:40 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com PM wrote: > When I blit more than 1 bitmap on the screen, the colour is messed up > big time on all bitmaps except the last bitmap that I opened. I'll give > you an example of my code ( this is not actual code, but follows same > structure ) Contrary to you subject line, this problem is not at all specific to allegro's palettes. It's a consequence of using different palettes for different bitmaps, in the first place. The *hardware* of your screen (in 256-color modes) has only one palette of 256 colors. So there's absolutely no way of displaying to images with two different 256-color palettes on that screen, at the same time. Solution: don't use palettes, or have all your images use the same palette. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.