Mail Archives: djgpp/1997/10/14/08:16:32
wait i'm a dumb ass, i have to say grass = load_bmp ( ... ); man i'm dumb
-Ethan
Ethan Giordano wrote in message <61tlm0$ra9$1 AT news DOT cybernex DOT net>...
>this is the source:
>
>void main ( void )
>{
> BITMAP *grass;
> PALETTE grass_palette;
>
> allegro_init();
> install_keyboard();
>
> set_gfx_mode ( GFX_AUTODETECT, 320, 200, 0, 0 ); // works ok
>
> load_bitmap ( "grass.bmp", grass_palette ); // works ok
> set_palette ( grass_palette ); // works ok
>
> clear_to_color ( screen, 4 ); // fill screen
>
> delay ( 2000 ); // delay in ms
>
> draw_sprite ( screen, grass, 160, 100 ); // program dies!!
>
> while ( !keypressed() );
>}
>
>
>the screen goes to the color, waits 2secs, then crashes. WHY???
>
>-Ethan
>
>
>
- Raw text -