From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Transparency Difficulties... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 X-Trace: /KDWjZAH2XCPpa5ZNEszZxErlTFpM/l9D2UyHocS+sDaFQFk5BfAAhEDy1l5PmBR0aqCRGLY78In!KFszt7L+GVOY1pb3xfjdaVYsF3zPO9pLRJPMiBRHdoEbC4Nws6YAvSOSjGfj37XgM0SFLbM9YMf9!05RHbs0= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 21:04:57 GMT Distribution: world Date: Tue, 23 May 2000 21:04:57 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 23 May 2000 04:03:22 GMT, "Justin Szczap" wrote: > I've loaded a bitmap and displayed it with no problem. The bitmap is not > full screen. The area of the screen which is not the bitmap, is the >'transparent' pink/purple color. Here's a sample: > void display_bitmap() >{ > BITMAP *the_bitmap; > PALETTE the_pal; > the_bitmap=load_bitmap("bitmap.bmp", the_pal); > set_palette(the_bitmap); > blit(the_bitmap, screen, 0, 0, 0, 0, 640, 480); > destroy_bitmap(the_bitmap); > } And how is this a problem? If the bitmap is not full screen, why are you assuming it is in the blit() line? Try this: blit(the_bitmap, screen, 0, 0, 0, 0, the_bitmap->w, the_bitmap->h); -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/