From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Fri, 16 Jan 1998 10:16:53 +0100 Subject: Re: Is this Ok? Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >In Allegro(v3), is this code ok for redefining a bitmap? >... >BITMAP *b=create_bitmap(x1,y1); //Size doesn't matter >... >destroy_bitmap(b); //kill it >BITMAP *b=create_bitmap(x2,y2); //Any size ^ you can't declare the same variable b twice (damned cut&paste :-) >... >Does this de-allocate memory then re-allocate it proberly? Yes, it should work (at least it does in v2.x :-) (of course it is not garanteed to return exactly the same memory for the bitmap structure) ciao Giacomo