grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / graphics / freespritedata.c
blob9d8eacfa19b533618f18bbea33288052819bcf56
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function FreeSpriteData()
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include <graphics/sprite.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/graphics.h>
18 AROS_LH1(void, FreeSpriteData,
20 /* SYNOPSIS */
21 AROS_LHA(struct ExtSprite *, extsp, A2),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 172, Graphics)
26 /* FUNCTION
27 Free sprite data allocated by AllocSpriteData().
29 INPUTS
30 extsp - The extended sprite structure to be freed.
31 Passing NULL is a NO-OP.
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
48 ******************************************************************************/
50 AROS_LIBFUNC_INIT
52 if (NULL != extsp) {
53 if (NULL != extsp->es_BitMap) {
54 FreeBitMap(extsp->es_BitMap);
56 FreeVec(extsp);
59 AROS_LIBFUNC_EXIT
60 } /* FreeSpriteData */