Mail Archives: djgpp/2000/06/26/17:34:43
Newsgroup: comp.os.msdos.djgpp
From: Radical NetSurfer <radsmail AT juno DOT com>
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
- Raw text -