Mail Archives: djgpp/2000/05/26/19:00:24
TNX!!!!!!!
it works great..
Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> skrev i
diskussionsgruppsmeddelandet:d8atis8sh86p96jtl3otdhasj46dv9gv64 AT 4ax DOT com...
> On Wed, 24 May 2000 07:09:01 GMT, "Fredrik Persson"
> <irnman AT rocketmail DOT com> 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/
- Raw text -