delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/10/19:30:05

Message-ID: <3B23FE01.B16BCFB8@home.com>
From: PM <paulm14 AT home DOT com>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Bitmap Colour Problem
References: <3B23A619 DOT 549A245D AT home DOT com> <MPG DOT 158dbf62fcfc22d898c0a6 AT news DOT freeserve DOT net>
Lines: 30
Date: Sun, 10 Jun 2001 23:15:06 GMT
NNTP-Posting-Host: 24.112.60.10
X-Complaints-To: abuse AT home DOT net
X-Trace: news4.rdc1.on.home.com 992214906 24.112.60.10 (Sun, 10 Jun 2001 16:15:06 PDT)
NNTP-Posting-Date: Sun, 10 Jun 2001 16:15:06 PDT
Organization: Excite AT Home - The Leader in Broadband http://home.com/faster
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Great thanks very much for your help! I think I'll go with the color
conversion route instead of the truecolour way cause there's gonna be some
serious blitting and true colour will slow it down.

Thanks again I appretiate it,
Paul M.

"Andrew R. Gillett" wrote:

> 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/

--
Regards,
Paul M.
paulm14 AT home DOT com


- Raw text -


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