delorie.com/archives/browse.cgi | search |
Message-ID: | <387C126E.21E84A2A@mail.utexas.edu> |
From: | Wei-shi Tsai <perdita AT mail DOT utexas DOT edu> |
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> |
Lines: | 32 |
Date: | Wed, 12 Jan 2000 05:14:15 GMT |
NNTP-Posting-Host: | 209.30.181.145 |
X-Complaints-To: | abuse AT flash DOT net |
X-Trace: | news.flash.net 947654055 209.30.181.145 (Tue, 11 Jan 2000 23:14:15 CST) |
NNTP-Posting-Date: | Tue, 11 Jan 2000 23:14:15 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--<Wi---+ X:a4s+[+]|80d+[+] O:d+:s+:o?:a--:h- P:a++:s6::w150:f?:eBr|Bkg:hBkm:t-:cAs:y--:r+|- \"The moonlight carries the message of love." -Serena/Sailor Moon "I just caught up on my reading. I'm now ten chapters ahead." -Amy/Sailor Mercury
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |