MCPcopy Create free account
hub / github.com/NetHack/NetHack / MyFreeBitMap

Function MyFreeBitMap

sys/amiga/winchar.c:315–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void
316MyFreeBitMap(struct BitMap *bmp)
317{
318 int j;
319 struct MyBitMap *bm = (struct MyBitMap *) bmp;
320
321 for (j = 0; j < bm->bm.Depth; ++j) {
322 if (bm->bm.Planes[j]) {
323 if (bm->mflags & MEMF_CHIP)
324 FreeRaster(bm->bm.Planes[j], bm->xsize, bm->ysize);
325 else
326 FreeMem(bm->bm.Planes[j], RASSIZE(bm->xsize, bm->ysize));
327 }
328 }
329 free(bm);
330}
331
332#ifdef TESTING
333void

Callers 3

FreeImageFileFunction · 0.85
MyAllocBitMapFunction · 0.85
winchar.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected