Message-Id: <199808040637.HAA25357@sable.ox.ac.uk> Comments: Authenticated sender is From: George Foot To: Mark Haase Date: Tue, 4 Aug 1998 07:36:46 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: allegro rectfill problem.. Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk CC: djgpp AT delorie DOT com Precedence: bulk On 4 Aug 98 at 2:46, Mark Haase wrote: > ok, i'm having this problem with allegro's rectfill function.. > > i do this: > BITMAP *bmp; > cwhite=makecol(255,255,255); > rectfill(bmp,1,1,10,10,cwhite); > > and i get a return of 255 from the program and a sigsev saying that its > shutting down allegro. i am sure its that particular line, so whats wrong > with it? You didn't create the bitmap. You must do something like this: BITMAP *bmp; bmp = create_bitmap (width, height); if (!bmp) report_some_error_and_quit(); cwhite = ... rectfill ... -- george DOT foot AT merton DOT oxford DOT ac DOT uk