grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / muimaster / mui_releasepen.c
blob92219b5b12a75543bfec62b8722f7bb629779479
1 /*
2 Copyright © 2002-2012, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/graphics.h>
7 #include <proto/muimaster.h>
9 #include "mui.h"
10 #include "muimaster_intern.h"
12 #define MUIPEN_HIMASK 0xFFFF0000 /* ??? */
14 /*****************************************************************************
16 NAME */
17 AROS_LH2(VOID, MUI_ReleasePen,
19 /* SYNOPSIS */
20 AROS_LHA(struct MUI_RenderInfo *, mri, A0),
21 AROS_LHA(LONG, pen, D0),
23 /* LOCATION */
24 struct Library *, MUIMasterBase, 27, MUIMaster)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 if (pen == -1)
47 return;
49 if (mri->mri_Colormap && ((pen & MUIPEN_HIMASK) == 0x10000))
51 ReleasePen(mri->mri_Colormap, MUIPEN(pen));
54 AROS_LIBFUNC_EXIT
56 } /* MUIA_ReleasePen */