Mail Archives: djgpp/1998/08/04/02:38:58
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
- Raw text -