2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Return the memory occupied by a single bitplane to the system.
8 #include <exec/memory.h>
9 #include <proto/exec.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <graphics/gfx.h>
16 #include <proto/graphics.h>
18 AROS_LH3(void, FreeRaster
,
21 AROS_LHA(PLANEPTR
, p
, A0
),
22 AROS_LHA(UWORD
, width
, D0
),
23 AROS_LHA(UWORD
, height
, D1
),
26 struct GfxBase
*, GfxBase
, 83, Graphics
)
29 Free the single bitplane allocated by AllocRaster().
32 p - The result of AllocRaster(). Must be non-NULL.
33 width, height - The size of the bitplane as passed to AllocRaster().
36 The memory occupied by the bitplane will be returned to the system.
45 AllocRaster(), AllocBitMap(), FreeBitMap()
51 *****************************************************************************/
55 FreeMem (p
, RASSIZE(width
, height
));