Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / intuition / clearpointer.c
blob5e9f8c11ddfbb4d474088aaf922ff9e57748da84
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH1(void, ClearPointer,
16 /* SYNOPSIS */
17 AROS_LHA(struct Window *, window, A0),
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 10, Intuition)
22 /* FUNCTION
23 Reset the mouse pointer of this window to the default one. If the
24 window is active during this call the pointer will immediately change
25 its shape. Set custom mouse pointers with SetPointer().
27 INPUTS
28 window - The window of which the mousepointer will be cleared
30 RESULT
31 None.
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
40 SetPointer()
42 INTERNALS
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
48 DEBUG_SETPOINTER(dprintf("ClearPointer: window 0x%lx\n",window));
50 if( window )
52 window->Pointer = NULL;
53 SetWindowPointerA(window, NULL);
56 AROS_LIBFUNC_EXIT
57 } /* ClearPointer */