2 Copyright © 2003, The AROS Development Team. All rights reserved.
5 Builtin icon images to fall back upon if on-disk icons cannot be opened.
6 Icons contributed by Martin "Mason" Merz.
9 #include <workbench/workbench.h>
10 #include <workbench/icon.h>
11 #include <proto/icon.h>
13 #include "icon_intern.h"
14 #include "support_builtin.h"
16 #define ICON_WIDTH (32)
17 #define ICON_HEIGHT (32)
18 #define ICON_DEPTH (2)
20 static const UBYTE disk_data_1
[] =
22 0x00,0x00,0x00,0x00,0x77,0x00,0x00,0xbc,0x77,0x00,0x3c,0xbe,0x77,0x00,0x3c,0xbf,
23 0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,
24 0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,0x77,0x00,0x00,0xbf,0x77,0x00,0x00,0xbf,
25 0x77,0x7f,0xff,0xbf,0x70,0x00,0x00,0x7f,0x7f,0xff,0xff,0xff,0x7f,0xff,0xff,0xff,
26 0x7f,0xff,0xff,0xff,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
27 0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
28 0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
29 0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x7f,0xff,0xff,0xfe,
30 0xff,0xff,0xff,0xf0,0xe7,0x80,0x00,0x38,0xe7,0x80,0x00,0x3c,0xe7,0x80,0x1e,0x3d,
31 0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,
32 0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x00,0x3d,
33 0xe7,0x00,0x00,0x3d,0xff,0x80,0x00,0x7d,0xff,0xff,0xff,0xfd,0xff,0xff,0xff,0xfd,
34 0xf0,0x00,0x00,0x1d,0xe0,0x00,0x00,0x0d,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
35 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
36 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
37 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0x80,0x00,0x00,0x00
40 static const UBYTE disk_data_2
[] =
42 0x00,0x00,0x00,0x00,0x70,0x00,0x07,0xbc,0x70,0x01,0xe7,0xbe,0x70,0x01,0xe7,0xbf,
43 0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,
44 0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,0x70,0x00,0x07,0xbf,0x70,0x00,0x07,0xbf,
45 0x73,0xff,0xff,0xbf,0x70,0x00,0x00,0x7f,0x7f,0xff,0xff,0xff,0x7f,0xff,0xff,0xff,
46 0x7f,0xff,0xff,0xff,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
47 0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
48 0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
49 0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x7f,0xff,0xff,0xfe,
50 0xff,0xff,0xff,0xf0,0xe4,0x00,0x03,0xf8,0xe4,0x00,0x03,0xfc,0xe4,0x00,0x13,0xfd,
51 0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,
52 0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,0xe4,0x00,0xf3,0xfd,0xe4,0x00,0x03,0xfd,
53 0xe0,0x00,0x03,0xfd,0xfe,0x00,0x03,0xfd,0xff,0xff,0xff,0xfd,0xff,0xff,0xff,0xfd,
54 0xf0,0x00,0x00,0x1d,0xe0,0x00,0x00,0x0d,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
55 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
56 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
57 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,0x80,0x00,0x00,0x00
60 static const UBYTE drawer_data_1
[] =
62 0x00,0x00,0x03,0x00,0x00,0x00,0x0f,0x80,0x00,0x00,0x3f,0x80,0x00,0x00,0xff,0xc0,
63 0x00,0x03,0xff,0xc0,0x00,0x0f,0xff,0xe0,0x00,0x3f,0xff,0xe0,0x00,0xff,0xff,0xf0,
64 0x03,0xff,0xff,0xf0,0x03,0xff,0xff,0xf8,0x01,0xff,0xff,0xf8,0x01,0xff,0xff,0xfc,
65 0x00,0xff,0xff,0xfc,0x00,0xff,0xff,0xfe,0x00,0x7f,0xff,0xfe,0x00,0x7f,0xff,0xff,
66 0x00,0x3f,0xff,0xff,0x30,0x3f,0xff,0xff,0x38,0x1f,0xff,0xff,0x1c,0x1f,0xff,0xfe,
67 0x0e,0x0f,0xff,0xfc,0x07,0x0f,0xff,0xf8,0x03,0x87,0xff,0xf0,0x01,0xc7,0xff,0xe0,
68 0x00,0xe3,0xff,0xc0,0x00,0x73,0xff,0x80,0x00,0x39,0xff,0x00,0x00,0x1d,0xfe,0x00,
69 0x00,0x0e,0xfc,0x00,0x00,0x07,0xf8,0x00,0x00,0x03,0xf0,0x00,0x00,0x01,0xe0,0x00,
70 0x00,0x00,0x03,0x00,0x00,0x00,0x0f,0x80,0x00,0x00,0x3f,0x80,0x00,0x00,0xff,0xc0,
71 0x00,0x03,0xff,0xc0,0x00,0x0f,0xff,0xe0,0x00,0x3f,0xff,0xe0,0x00,0xff,0xff,0xf0,
72 0x03,0xff,0xff,0xf0,0x03,0xff,0xff,0xf8,0x01,0xff,0xff,0xf8,0x01,0xff,0xff,0xfc,
73 0x00,0xff,0xff,0xfc,0x01,0xff,0xff,0xfe,0x07,0x7f,0xff,0xfe,0x1f,0xff,0xff,0xff,
74 0x1f,0xbf,0xff,0xff,0x3f,0xff,0xff,0xfe,0x2f,0xdf,0xff,0xfd,0x17,0xff,0xff,0xfa,
75 0x0b,0xef,0xff,0xf4,0x05,0xff,0xff,0xe8,0x02,0xf7,0xff,0xd0,0x01,0x7f,0xff,0xa0,
76 0x00,0xbb,0xff,0x40,0x00,0x5f,0xfe,0x80,0x00,0x2d,0xfd,0x00,0x00,0x17,0xfa,0x00,
77 0x00,0x0a,0xf4,0x00,0x00,0x05,0xe8,0x00,0x00,0x02,0xd0,0x00,0x00,0x01,0x20,0x00
80 static const UBYTE drawer_data_2
[] =
82 0x00,0x00,0x03,0x00,0x00,0x00,0x0f,0x80,0x00,0x00,0x3f,0x80,0x00,0x00,0xff,0xc0,
83 0x00,0x03,0xff,0xc0,0x00,0x0f,0xff,0xe0,0x00,0x3f,0xff,0xe0,0x00,0xff,0xff,0xf0,
84 0x03,0xff,0xff,0xf0,0x03,0xff,0xff,0xf8,0x01,0xff,0xff,0xf8,0x01,0xff,0xff,0xfc,
85 0x00,0xff,0xff,0xfc,0x00,0xff,0xff,0xfe,0x00,0x7f,0xff,0xfe,0x00,0x7f,0xff,0xff,
86 0x00,0x3f,0xff,0xff,0x30,0x3f,0xff,0xff,0x38,0x1f,0xff,0xff,0x1c,0x1f,0xff,0xfe,
87 0x0e,0x0f,0xff,0xfc,0x07,0x0f,0xff,0xf8,0x03,0x87,0xff,0xf0,0x01,0xc7,0xff,0xe0,
88 0x00,0xe3,0xff,0xc0,0x00,0x73,0xff,0x80,0x00,0x39,0xff,0x00,0x00,0x1d,0xfe,0x00,
89 0x00,0x0e,0xfc,0x00,0x00,0x07,0xf8,0x00,0x00,0x03,0xf0,0x00,0x00,0x01,0xe0,0x00,
90 0x00,0x00,0x03,0x00,0x00,0x00,0x1f,0x80,0x00,0x00,0x7f,0x80,0x00,0x01,0xff,0xc0,
91 0x00,0x07,0xff,0xc0,0x00,0x1f,0xff,0xe0,0x00,0x7f,0xff,0xe0,0x01,0xff,0xff,0xf0,
92 0x07,0xff,0xff,0xf0,0x1f,0xff,0xff,0xf8,0x7f,0xff,0xff,0xf8,0x7f,0xff,0xff,0xfc,
93 0x3f,0xff,0xff,0xfc,0x1f,0xff,0xff,0xfe,0x0f,0x7f,0xff,0xfe,0x17,0xff,0xff,0xff,
94 0x1b,0xbf,0xff,0xff,0x3d,0xff,0xff,0xfe,0x2e,0xdf,0xff,0xfd,0x17,0x7f,0xff,0xfa,
95 0x0b,0xaf,0xff,0xf4,0x05,0xdf,0xff,0xe8,0x02,0xe7,0xff,0xd0,0x01,0x77,0xff,0xa0,
96 0x00,0xbb,0xff,0x40,0x00,0x5f,0xfe,0x80,0x00,0x2d,0xfd,0x00,0x00,0x17,0xfa,0x00,
97 0x00,0x0a,0xf4,0x00,0x00,0x05,0xe8,0x00,0x00,0x02,0xd0,0x00,0x00,0x01,0x20,0x00
100 static const UBYTE project_data_1
[] =
102 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
103 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
104 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
105 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
106 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x18,
107 0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x60,0x80,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
108 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
109 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
110 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
111 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,
112 0x00,0x07,0xe0,0x00,0x00,0x0f,0xf8,0x00,0x00,0x1f,0xfe,0x00,0x00,0x3f,0xff,0x80,
113 0x00,0x7f,0xff,0xe0,0x00,0xff,0xff,0xf8,0x01,0xff,0xff,0xfe,0x03,0xff,0xff,0xfd,
114 0x07,0xff,0xff,0xf9,0x0f,0xff,0xff,0xf2,0x1f,0xff,0xff,0xe4,0x3f,0xff,0xff,0xc8,
115 0x7f,0xff,0xff,0x90,0xff,0xff,0xff,0x20,0x3f,0xff,0xfe,0x40,0x8f,0xff,0xfc,0x80,
116 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
117 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00,
120 static const UBYTE project_data_2
[] =
122 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
123 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
124 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
125 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
126 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x18,
127 0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x60,0x80,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
128 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
129 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
130 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
131 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
132 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0xfc,0x00,0x00,0x3b,0xe7,0x80,
133 0x00,0x7d,0x9f,0xe0,0x00,0xfe,0x7f,0xf8,0x01,0xff,0xff,0xfe,0x03,0xff,0xff,0xfd,
134 0x07,0xff,0xff,0xf9,0x0f,0xff,0xff,0xf2,0x1f,0xff,0xff,0xe4,0x3f,0xff,0xff,0xc8,
135 0x7f,0xff,0xff,0x90,0xff,0xff,0xff,0x20,0x3f,0xff,0xfe,0x40,0x8f,0xff,0xfc,0x80,
136 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
137 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00,
140 static const UBYTE tool_data_1
[] =
142 0x00,0x00,0x00,0x00,0x07,0xf0,0x00,0x00,0x0c,0x10,0x00,0x00,0x10,0x30,0x00,0x00,
143 0x20,0x60,0x00,0x00,0x40,0xc0,0x00,0x00,0x40,0xc1,0x00,0x00,0x40,0xc2,0x80,0x00,
144 0x40,0x64,0xc0,0x00,0x41,0x18,0xc0,0x00,0x43,0x88,0xc0,0x00,0x62,0xc5,0x80,0x00,
145 0x31,0x63,0x80,0x00,0x18,0xc3,0x00,0x00,0x0c,0x06,0x00,0x00,0x0c,0x0c,0x00,0x01,
146 0x04,0xc8,0x00,0x03,0x04,0x80,0x00,0x06,0x04,0x80,0x00,0x0c,0x04,0x00,0x00,0x18,
147 0x04,0x80,0x00,0x30,0x01,0x00,0x00,0x60,0x84,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
148 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
149 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
150 0x00,0x00,0x00,0x00,0x04,0x10,0x00,0x00,0x01,0xc0,0x00,0x00,0x07,0x90,0x00,0x00,
151 0x0f,0x20,0x00,0x00,0x5e,0x40,0x00,0x00,0x3e,0x40,0x00,0x00,0x3e,0x41,0x00,0x00,
152 0x3f,0x01,0x60,0x00,0x3c,0x43,0x58,0x00,0x5d,0x36,0x4e,0x00,0x4c,0x90,0x9f,0x80,
153 0x24,0x58,0xbf,0xe0,0x12,0x19,0x7f,0xf8,0x0b,0xf2,0xff,0xfe,0x0b,0xe5,0xff,0xfd,
154 0x03,0x63,0xff,0xf9,0x0b,0x27,0xff,0xf2,0x17,0x8f,0xff,0xe4,0x23,0x1f,0xff,0xc8,
155 0x47,0xbf,0xff,0x90,0x83,0x7f,0xff,0x20,0x24,0xff,0xfe,0x40,0x89,0xff,0xfc,0x80,
156 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
157 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00
160 static const UBYTE tool_data_2
[] =
162 0x00,0x00,0x00,0x00,0x07,0xf0,0x00,0x00,0x0c,0x10,0x00,0x00,0x10,0x30,0x00,0x00,
163 0x20,0x68,0x00,0x00,0x40,0xcc,0x00,0x00,0x40,0xcc,0x00,0x00,0x40,0x8c,0x00,0x00,
164 0x40,0x78,0x00,0x00,0x41,0x10,0x00,0x00,0x43,0x88,0x00,0x00,0x62,0xc4,0x00,0x00,
165 0x31,0x62,0x00,0x00,0x18,0xc2,0x00,0x00,0x0c,0x06,0x00,0x00,0x0c,0x0c,0x00,0x01,
166 0x04,0xc8,0x00,0x03,0x04,0x80,0x00,0x06,0x04,0x80,0x00,0x0c,0x04,0x00,0x00,0x18,
167 0x04,0x80,0x00,0x30,0x01,0x00,0x00,0x60,0x84,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
168 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
169 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
170 0x00,0x00,0x00,0x00,0x04,0x10,0x00,0x00,0x01,0xc0,0x00,0x00,0x07,0x80,0x00,0x00,
171 0x0f,0x10,0x00,0x00,0x5e,0x14,0x00,0x00,0x3e,0x74,0x00,0x00,0x3e,0x64,0x00,0x00,
172 0x3f,0x08,0x00,0x00,0x3c,0x40,0x00,0x00,0x5d,0x33,0xfc,0x00,0x4c,0x91,0xe7,0x80,
173 0x24,0x58,0x9f,0xe0,0x12,0x18,0x7f,0xf8,0x0b,0xf2,0xff,0xfe,0x0b,0xe5,0xff,0xfd,
174 0x03,0x63,0xff,0xf9,0x0b,0x27,0xff,0xf2,0x17,0x8f,0xff,0xe4,0x23,0x1f,0xff,0xc8,
175 0x47,0xbf,0xff,0x90,0x83,0x7f,0xff,0x20,0x24,0xff,0xfe,0x40,0x89,0xff,0xfc,0x80,
176 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
177 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00
180 BOOL
__GetBuiltinImage_WB(struct Image
*img
, LONG type
, BOOL selected
, struct IconBase
*IconBase
)
182 if (type
< WBDISK
|| type
> WBPROJECT
)
185 img
->Depth
= ICON_DEPTH
;
186 img
->Width
= ICON_WIDTH
;
187 img
->Height
= ICON_HEIGHT
;
188 img
->PlanePick
= (1 << ICON_DEPTH
) - 1;
189 img
->PlaneOnOff
= (1 << ICON_DEPTH
) - 1;
194 img
->ImageData
= (UWORD
*) (selected
? disk_data_2
: disk_data_1
);
198 img
->ImageData
= (UWORD
*) (selected
? drawer_data_2
: drawer_data_1
);
202 img
->ImageData
= (UWORD
*) (selected
? project_data_2
: project_data_1
);
206 img
->ImageData
= (UWORD
*) (selected
? tool_data_2
: tool_data_1
);
213 struct DiskObject
*__GetBuiltinIcon_WB(LONG type
, struct IconBase
*IconBase
)
215 struct DiskObject temp
= { 0 };
216 struct Image img1
= { 0 };
217 struct Image img2
= { 0 };
218 struct DiskObject
*dobj
;
220 /* Only WBDISK, WBDRAWER, WBTOOL and WBPROJECT are supported */
221 if (type
< WBDISK
|| type
> WBPROJECT
) return NULL
;
223 temp
.do_Magic
= WB_DISKMAGIC
;
224 temp
.do_Version
= (WB_DISKVERSION
<< 8) | WB_DISKREVISION
;
226 temp
.do_CurrentX
= NO_ICON_POSITION
;
227 temp
.do_CurrentY
= NO_ICON_POSITION
;
229 GetBuiltinImage(&img1
, type
, FALSE
);
230 GetBuiltinImage(&img2
, type
, FALSE
);
232 temp
.do_Gadget
.GadgetRender
= &img1
;
233 temp
.do_Gadget
.SelectRender
= &img2
;
234 temp
.do_Gadget
.Width
= img1
.Width
;
235 temp
.do_Gadget
.Height
= img1
.Height
;
236 temp
.do_Gadget
.Flags
|= GFLG_GADGIMAGE
;
237 temp
.do_DefaultTool
= (type
== WBDISK
) ? "SYS:System/DiskCopy" : "";
239 dobj
= DupDiskObject(&temp
,
240 ICONDUPA_DuplicateImages
, TRUE
,
241 ICONDUPA_DuplicateImageData
, TRUE
,