Mail Archives: djgpp/2001/06/08/07:30:07
PM <paulm14 AT home DOT com> 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.
- Raw text -