Message-ID: <387C1294.87A18948@mail.utexas.edu> From: Wei-shi Tsai X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: allegro... References: <84t2jp$hj9$1 AT planja DOT arnes DOT si> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 Date: Wed, 12 Jan 2000 05:14:53 GMT NNTP-Posting-Host: 209.30.181.145 X-Complaints-To: abuse AT flash DOT net X-Trace: news.flash.net 947654093 209.30.181.145 (Tue, 11 Jan 2000 23:14:53 CST) NNTP-Posting-Date: Tue, 11 Jan 2000 23:14:53 CST Organization: FlashNet Communications, http://www.flash.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Matej wrote: > 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... I was able to work around this problem by doing these steps to exploit a feature of Allegro's blit() function: 1. Use at least a 15-bit or higher video mode. 2. For every image that you load, have a 8-bit bitmap (create_bitmap_ex())of the exact same size (or bigger) of the bitmaps that you want to load. 3. Set your palette for whatever bitmap you are loading. 4. Load your bitmap into the 8-bit bitmap. 5. Blit the bitmap to the desired high color bitmap. Repeat 3-5 for each bitmap. -- Wei-shi Tsai e-mail: perdita AT mail DOT utexas DOT edu MoonieCode(1.8.11) SM:6-[8]m+ F:sMe++[+]>Mo+>:vNe+>Bl+<:aLu+[+]>Ry<:pR+>Cl< D:s:Ma<:vJa--