2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
7 #include <workbench/icon.h>
8 #include <proto/icon.h>
10 #include "icon_intern.h"
12 # include <aros/debug.h>
14 /*****************************************************************************
18 AROS_LH1(struct DiskObject
*, NewDiskObject
,
21 AROS_LHA(ULONG
, type
, D0
),
24 struct IconBase
*, IconBase
, 29, Icon
)
27 Creates an empty DiskObject structure.
30 type - WBDISK, WBDRAWER, WBTOOL, WBPROJECT,
31 WBGARBAGE, WBDEVICE or WBKICK
45 *****************************************************************************/
50 struct NativeIcon
*ni
;
53 ni
= (struct NativeIcon
*)AllocMem(sizeof(struct NativeIcon
), MEMF_CLEAR
);
57 ni
->ni_DiskObject
.do_Type
= type
;
59 NEWLIST(&ni
->ni_FreeList
.fl_MemList
);
60 for (i
= 0; i
< 2; i
++)
61 ni
->ni_Image
[i
].TransparentColor
= -1;
63 AddIconToList(ni
, IconBase
);
64 result
= &ni
->ni_DiskObject
;