www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/10/13:45:17

From: "Andrew R. Gillett" <arg AT whangomatic DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Bitmap Colour Problem
Date: Sun, 10 Jun 2001 18:31:56 +0100
Organization: www.release-dates.co.uk
Lines: 15
Message-ID: <MPG.158dbf62fcfc22d898c0a6@news.freeserve.net>
References: <3B23A619 DOT 549A245D AT home DOT com>
NNTP-Posting-Host: modem-285.sphynx.dialup.pol.co.uk
X-Trace: newsg2.svr.pol.co.uk 992194280 15834 217.134.121.29 (10 Jun 2001 17:31:20 GMT)
NNTP-Posting-Date: 10 Jun 2001 17:31:20 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: MicroPlanet Gravity v2.30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In comp.os.msdos.djgpp, 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.

That's because you're in 256 (8 bit) colour mode, and each bitmap is 
using a different palette. Either convert your bitmaps so that they are 
all using the same palette, or run your program in high/true colour mode 
(see set_color_depth function in Allegro documentation).


-- 
Andrew Gillett      http://argnet.fatal-design.com/     ICQ: See homepage

US videogame release dates at:
http://www.release-dates.com/

- Raw text -


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