From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro, Bitmaps, and Palettes Date: Fri, 02 Jan 1998 10:35:51 -0500 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 22 Message-ID: <34AD0957.69FA@cam.org> References: <68iaj1$f64 AT bgtnsc03 DOT worldnet DOT att DOT net> NNTP-Posting-Host: dynppp-125.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk You're supposed to read the documentation of any piece of software before using it. It will save you a lot of trouble and answer a lot of questions. YES, you have to set the palette of the bitmap before using it, and NO, it doesn't do it automatically. Why would it?? > #include > > BITMAP *thing; > PALETTE pte; > > main () { > > set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0); > > thing = load_bmp("rose.bmp", pte); >>> set_palette(pte); <<< > blit(thing, screen, 1, 1, 1, 1, 100, 100); > > } -- --> http://www.cam.org/~tudor <--