cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/04/02:38:58

Message-Id: <199808040637.HAA25357@sable.ox.ac.uk>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Mark Haase <savar AT mindspring DOT com>
Date: Tue, 4 Aug 1998 07:36:46 +0000
MIME-Version: 1.0
Subject: Re: allegro rectfill problem..
Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019