Date: Fri, 25 Apr 1997 07:55:07 -0500 (CDT) From: Andrew Deren To: Atte Koivula cc: djgpp AT delorie DOT com Subject: Re: Problem loading PCX-file using Allegro In-Reply-To: <01bc4f39$c2ea5ac0$3b86d2c1@ojzxnyqp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk What is your problem? You cannot compile this, or is it not working? If you try to use exacly what you have in there you won't see anything because your program just starts, loads pcx, blits it and exits. You might want to include a loop at the end of your program while (!keypressed()); On 24 Apr 1997, Atte Koivula wrote: > Why does this cause a page fault (I'm simply trying to load and blit a > pcx-file called dice.pcx...): > > #include > > void main() > { > allegro_init(); > BITMAP *dice; > PALETTE dicepalette; > dice=load_bitmap("c:/djgpp/atte/progs/dice.pcx", dicepalette); > set_gfx_mode(GFX_MODEX,320,200,0,0); > set_palette(dicepalette); > blit(dice,screen,0,0,0,0,dice->w,dice->h); > destroy_bitmap(dice); > } > > Please help me! You can e-mail to: keijo DOT koivula AT pp DOT inet DOT fi or > akoivula AT geocities DOT com or this group (figures) > >