| www.delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Transparency Difficulties... |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <hgslisouhf5gcpdth4n1vhv0ev2cllcjqc@4ax.com> |
| References: | <oAiV4.1440$D%2 DOT 35145 AT news1 DOT news DOT adelphia DOT net> <j7peis0sdsgbjkm67koov4ei7h5rakp8j0 AT 4ax DOT com> <eqnW4.1983$D%2 DOT 48227 AT news1 DOT news DOT adelphia DOT net> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| 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"
<jmszczap82 AT adelphia DOT net> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |