2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
8 #include "coolimages_intern.h"
10 /*****************************************************************************
13 AROS_LH2(const struct CoolImage
*, COOL_ObtainImageA
,
16 AROS_LHA(ULONG
, imageid
, D0
),
17 AROS_LHA(struct TagItem
*, tags
, A0
),
20 struct Library
*, CoolImagesBase
, 5, CoolImages
)
38 *****************************************************************************/
42 const struct CoolImage
*image
= NULL
;
46 case COOL_SAVEIMAGE_ID
:
47 image
= &cool_saveimage
;
50 case COOL_LOADIMAGE_ID
:
51 image
= &cool_loadimage
;
54 case COOL_USEIMAGE_ID
:
55 image
= &cool_useimage
;
58 case COOL_CANCELIMAGE_ID
:
59 image
= &cool_cancelimage
;
62 case COOL_DOTIMAGE_ID
:
63 image
= &cool_dotimage
;
66 case COOL_DOTIMAGE2_ID
:
67 image
= &cool_dotimage2
;
70 case COOL_WARNIMAGE_ID
:
71 image
= &cool_warnimage
;
74 case COOL_DISKIMAGE_ID
:
75 image
= &cool_diskimage
;
78 case COOL_SWITCHIMAGE_ID
:
79 image
= &cool_switchimage
;
82 case COOL_MONITORIMAGE_ID
:
83 image
= &cool_monitorimage
;
86 case COOL_MOUSEIMAGE_ID
:
87 image
= &cool_mouseimage
;
90 case COOL_INFOIMAGE_ID
:
91 image
= &cool_infoimage
;
94 case COOL_ASKIMAGE_ID
:
95 image
= &cool_askimage
;
98 case COOL_KEYIMAGE_ID
:
99 image
= &cool_keyimage
;
102 case COOL_CLOCKIMAGE_ID
:
103 image
= &cool_clockimage
;
106 case COOL_FLAGIMAGE_ID
:
107 image
= &cool_flagimage
;
110 case COOL_HEADIMAGE_ID
:
111 image
= &cool_headimage
;
114 case COOL_WINDOWIMAGE_ID
:
115 image
= &cool_windowimage
;
118 case COOL_KBDIMAGE_ID
:
119 image
= &cool_kbdimage
;
122 } /* switch(imageid) */
128 } /* COOL_ObtainImageA */