From: eglebbk AT phys DOT uva DOT nl (Evert Glebbeek) Newsgroups: comp.os.msdos.djgpp Subject: Re: Please Help:Allegro/BMP's Date: Mon, 26 Jun 2000 19:34:34 GMT Organization: Physics student, University of Amsterdam Lines: 42 Distribution: world Message-ID: <3957ac62.35798283@news.wins.uva.nl> References: <395729c9 DOT 2362749 AT news DOT wins DOT uva DOT nl> <6qkels0g31vk934ud9lj7ltba4j9lelbk9 AT 4ax DOT com> NNTP-Posting-Host: stol-116-29.uva.studentennet.nl X-Trace: info.wins.uva.nl 962048023 26824 145.98.116.29 (26 Jun 2000 19:33:43 GMT) X-Complaints-To: usenet AT science DOT uva DOT nl NNTP-Posting-Date: 26 Jun 2000 19:33:43 GMT X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Newsgroup: comp.os.msdos.djgpp From: Radical NetSurfer On Mon, 26 Jun 2000 08:59:19 -0400 >Are you using something different from the rest of us? > >OR have you designed a routine that does what you described >below? Please share it with me if you have such a critter. >radsmail AT juno DOT com > Oops... looks like I typed faster than I thought ;-) I use stock Allegro WIP; like Damian Yerrick pointed out, I meant to write `destroy_bitmap' instead of `release_bitmap', and create_bitmap(bitmap, w, h) should have been bitmap=create_bitmap(w,h). Sorry if I caused any confusion here. >>Well, I'm not sure from your post if you tried this and it failed, but >>my suggestion would be to do releas_bitmap(bitmap) and >I find no mention of 'releas' but one instance of 'release_' yeah, sorry... that's an other typo. :-) Anyway, from what I understand, what you want is something like the following BITMAP *realloc_bitmap (BITMAP *bmp, int w, int h) { if (bmp) destroy_bitmap (bmp); return create_bitmap (w, h); } and then do bmp=realloc_bitmap(bmp,new_w,new_h); anyway, I hope my previous post didn't create more confusion than it aimed to clear up. regards, Evert Glebbeek