2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function FreeSprite()
8 #include <graphics/gfxbase.h>
9 #include <proto/exec.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH1(void, FreeSprite
,
20 AROS_LHA(WORD
, pick
, D0
),
23 struct GfxBase
*, GfxBase
, 69, Graphics
)
26 Free a via GetSprite previously allocated sprite.
27 Don't even dare to free a sprite you didn't allocate.
30 pick - number of sprite in range 0-7
33 Sprite is made available for other tasks and the Virtual Sprite
43 GetSprite(), ChangeSprite(), MoveSprite(), graphics/sprite.h
49 *****************************************************************************/
54 UBYTE Mask
= (0x01 << pick
) ^ 0xff;
56 GfxBase
->SpriteReserved
&= Mask
;