Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / muimaster / mui_releasepen.c
blobc0e85f5fe494c9988d1372ed709b45560d36f0b6
1 /*
2 Copyright © 2002-2007, 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, 23, MUIMaster)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 HISTORY
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
48 if (pen == -1)
49 return;
51 if (mri->mri_Colormap && ((pen & MUIPEN_HIMASK) == 0x10000))
53 ReleasePen(mri->mri_Colormap, MUIPEN(pen));
56 AROS_LIBFUNC_EXIT
58 } /* MUIA_ReleasePen */