Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / asl / arrowclass.c
blobc7a6517ea5120520ffe1f6eec9672ab846881197
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <proto/alib.h>
10 #include <proto/exec.h>
11 #include <proto/dos.h>
12 #include <proto/utility.h>
13 #include <proto/intuition.h>
14 #include <proto/graphics.h>
15 #include <proto/cybergraphics.h>
17 #include <exec/memory.h>
18 #include <intuition/screens.h>
19 #include <intuition/icclass.h>
20 #include <intuition/cghooks.h>
21 #include <intuition/imageclass.h>
22 #include <intuition/gadgetclass.h>
23 #include <graphics/gfx.h>
24 #include <cybergraphx/cybergraphics.h>
26 #include <string.h>
28 #include "asl_intern.h"
29 #include "layout.h"
31 #define SDEBUG 0
32 #define DEBUG 0
34 #include <aros/debug.h>
36 #define CLASS_ASLBASE ((struct AslBase_intern *)cl->cl_UserData)
37 #define HOOK_ASLBASE ((struct AslBase_intern *)hook->h_Data)
39 #define AslBase CLASS_ASLBASE
41 /********************** ASL ARROW CLASS **************************************************/
43 IPTR AslArrow__OM_NOTIFY(Class * cl, Object * o, struct opUpdate *msg)
45 struct AslArrowData *data;
46 IPTR retval = 0;
48 data = INST_DATA(cl, o);
50 if (!data->scrollticker || (data->scrollticker == SCROLLTICKER))
52 retval = DoSuperMethodA(cl, o, (Msg)msg);
55 if (data->scrollticker) data->scrollticker--;
57 return retval;
60 /***********************************************************************************/
62 IPTR AslArrow__GM_GOACTIVE(Class * cl, Object * o, struct gpInput *msg)
64 struct AslArrowData *data;
65 IPTR retval;
67 data = INST_DATA(cl, o);
68 data->scrollticker = SCROLLTICKER;
70 retval = DoSuperMethodA(cl, o, (Msg)msg);
72 return retval;
75 /***********************************************************************************/