delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/21:53:58

From: "Todorovic" <todorus AT eunet DOT yu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: allegro...
Date: Fri, 7 Jan 2000 00:24:34 +0100
Organization: Public news server of EUnet Yugoslavia
Lines: 17
Message-ID: <853d03$cbh$4@SOLAIR2.EUnet.yu>
References: <84t2jp$hj9$1 AT planja DOT arnes DOT si>
NNTP-Posting-Host: p-4.53.eunet.yu
X-Trace: SOLAIR2.EUnet.yu 947205954 12657 213.240.4.53 (7 Jan 2000 00:45:55 GMT)
X-Complaints-To: abuse AT EUnet DOT yu
NNTP-Posting-Date: 7 Jan 2000 00:45:55 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Hi all,
> how to display 2 or more different bitmaps (pcx) on the screen? There is
no
> problem when I have only 1 pic and call the set_pallete(pal). But if I
> experiment something more with 2 pics and call the set_pallete(newpal) (or
> just set_pallete(pal)) before or after blitting them to screen all those
> colors mix up...
> Thank you,
> Matej

The problem should be that you use 8-bit color mode. Try at least 15-bit
color mode, and take a look at Allegro's examples ex32 and ex40.

Alexa



- Raw text -


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