home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
432b.lha
/
EzLib
/
doc
/
free_bitmap.doc
< prev
next >
Wrap
Text File
|
1990-11-10
|
741b
|
23 lines
FUNCTION free_bitmap() - Free up a previously allocated bitmap struct
free_bitmap(bm, width, height)
struct BitMap *bm;
int width, height;
This function will simply free up all the resources taken by the given
bitmap. The BitMap structure itself is freed, and should no longer be used
after this function.
Just make sure to call this function on a previously allocated bitmap,
and not something like your custom screen bitmap. Preferably you would
have used something like getbitmap() to allocate the bitmap you wish to
free.
TODO : maybe get rid of the width,height arguments? could calculate it
internally, but I might be off
BUGS : roaches, ants, gnats, etc...
SEE ALSO : getbitmap(), makescreen()