From: Jack Klein Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp Subject: Re: Allegro Bitmap Colour Problem Followup-To: comp.os.msdos.djgpp Message-ID: <34s7it0jahelacol4frb7nl1o9h3rdqf5q@4ax.com> References: <3B23A6C4 DOT 24F8A38E AT home DOT com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 57 Date: Sun, 10 Jun 2001 22:15:25 GMT NNTP-Posting-Host: 12.84.4.221 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 992211325 12.84.4.221 (Sun, 10 Jun 2001 22:15:25 GMT) NNTP-Posting-Date: Sun, 10 Jun 2001 22:15:25 GMT Organization: AT&T Worldnet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 10 Jun 2001 17:02:53 GMT, PM wrote in alt.comp.lang.learn.c-c++: > Hey if anyone out there uses allegro maybe you can help me. I'll posted > this on several other mailing lists incase I get different answers and > such. Im very frustrated I cant fix this problem... > > 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. I'll give > you an example of my code ( this is not actual code, but follows same > structure ) > > BITMAP *bmp1,*bmp2, *tmp; > PALLETE Pal; > > bmp1=load_bitmap("blah blah", Pal); > bmp2=laod_bitmap("blah blah2", Pal); > tmp=create_bitmap(640, 480); > > blit(bmp1, tmp, 0, 0, 0, 0, 640, 480); // image 1 goes to temp > blit(bmp2, tmp, 0, 0, 0, 0, 100, 10); // image 2 goes to temp > blit(tmp, screen, 0, 0, 0, 0, 640, 480); // temp is displayed > > Now bmp1's colours are screwed up and bmp2's colours are fine.. > > I've tried many things to fix this. I tried making a separate pallete > for each > image, I tried it on another computer, I tried blitting them both to the > > screen instead to the tmp bitmap, and many other things. I did not get > any luck. Please guys I have to find out how to fix this. Any help would > > be appretiated. > > Thanks very much, There are many people who have experience using Allegro, but alt.comp.lang.learn.c-c++ is not the place to ask about it. This group is for discussing the standard C and C++ languages as defined by their individual ANSI/ISO standards, and not platform and compiler specific extensions like Allegro. The place to ask about Allegro is the group dedicated to your compiler and its libraries, news:comp.os.msdos.djgpp. I have forwarded this to that group and set followups to that group. Please look for answers, and ask future questions, about DJGPP and its particular libraries there. [posted & mailed] -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq