Mail Archives: djgpp/1998/12/10/02:24:46
off hand:
#include <allegro.h>
main(){
allegro_init();
install_timer();
install_keyboard();
set_gfx_mode(GFX_AUTODETECT,320,200,0,0);
bmp=load_bitmap("foo.bmp");
blit(bmp,screen,0,0,0,0,320,200);
while(!key[KEY_SPACE]);
}
----------
> From: Claes Ericson <coboltski AT telia DOT com>
> To: djgpp AT delorie DOT com
> Subject: Display a picture!
> Date: Wednesday, December 09, 1998 7:36 PM
>
> Does anyone have a small source code for displaying a picture (in any
> format) in DJGPP without using Allegro?
>
> /g3tch
- Raw text -