r4493@vps: verhaegs | 2007-04-19 14:44:00 -0400
[AROS.git] / rom / graphics / clearregion.c
blob28317aef4c9d5d460a2db0d57555066901682f63
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function ClearRegion()
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <proto/exec.h>
11 #include <graphics/regions.h>
12 #include "intregions.h"
14 /*****************************************************************************
16 NAME */
17 #include <clib/graphics_protos.h>
19 AROS_LH1(void, ClearRegion,
21 /* SYNOPSIS */
22 AROS_LHA(struct Region *, region, A0),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 88, Graphics)
27 /* FUNCTION
28 Removes all rectangles in the specified region.
30 INPUTS
31 region - pointer to the region structure
33 RESULT
34 None.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 NewRegion()
45 INTERNALS
47 HISTORY
48 27-11-96 digulla automatically created from
49 graphics_lib.fd and clib/graphics_protos.h
50 15-01-97 mreckt initial version
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 ASSERT_VALID_PTR(region);
58 _DisposeRegionRectangleList(region->RegionRectangle, GfxBase);
60 InitRegion(region);
62 AROS_LIBFUNC_EXIT
63 } /* ClearRegion */