From: "Fredrik Persson" Newsgroups: comp.os.msdos.djgpp References: Subject: re: tnx Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Fri, 26 May 2000 21:55:20 GMT NNTP-Posting-Host: 62.20.165.64 X-Complaints-To: abuse AT telia DOT com X-Trace: newsc.telia.net 959378120 62.20.165.64 (Fri, 26 May 2000 23:55:20 MET DST) NNTP-Posting-Date: Fri, 26 May 2000 23:55:20 MET DST Organization: Telia Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com TNX!!!!!!! it works great.. Damian Yerrick skrev i diskussionsgruppsmeddelandet:d8atis8sh86p96jtl3otdhasj46dv9gv64 AT 4ax DOT com... > On Wed, 24 May 2000 07:09:01 GMT, "Fredrik Persson" > wrote: > > >Hi i tried to set_pelette after loading the bitmap but it still just returns > >a black screen.. > > > >{ > >allegro_init(); > >install_keyboard(); > >set_gfx_mode(GFX_VGA, 320, 200, 0, 0); > >PALETTE p; > >screen=load_bitmap("drop.bmp",p); > > You can't just set the "screen" variable to a bitmap. > > >set_palette(p); > >readkey(); > >allegro_exit(); > >} > > You have to blit a bitmap to the screen, using blit() or > draw_sprite(). > > Try doing this: > 1. load the bitmap (into your own BITMAP *) > 2. set the palette > 3. blit the bitmap to screen > > -- > 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/