Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / icon / support_builtin.c
blob960e51ae0cca35e07c4e076da27b0ead3911a837
1 /*
2 Copyright © 2003, The AROS Development Team. All rights reserved.
3 $Id$
5 Builtin icon images to fall back upon if on-disk icons cannot be opened.
6 Icons contributed by Martin "Mason" Merz.
7 */
9 #include <workbench/workbench.h>
10 #include <workbench/icon.h>
11 #include <proto/icon.h>
13 #include "icon_intern.h"
15 #define ICON_WIDTH (32)
16 #define ICON_HEIGHT (32)
17 #define ICON_DEPTH (32)
19 static const UBYTE disk_data_1[] =
21 0x00,0x00,0x00,0x00,0x77,0x00,0x00,0xbc,0x77,0x00,0x3c,0xbe,0x77,0x00,0x3c,0xbf,
22 0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,
23 0x77,0x00,0x3c,0xbf,0x77,0x00,0x3c,0xbf,0x77,0x00,0x00,0xbf,0x77,0x00,0x00,0xbf,
24 0x77,0x7f,0xff,0xbf,0x70,0x00,0x00,0x7f,0x7f,0xff,0xff,0xff,0x7f,0xff,0xff,0xff,
25 0x7f,0xff,0xff,0xff,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
26 0x70,0x00,0x00,0x0f,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,0x7f,0xff,0xff,0xfe,
29 0xff,0xff,0xff,0xf0,0xe7,0x80,0x00,0x38,0xe7,0x80,0x00,0x3c,0xe7,0x80,0x1e,0x3d,
30 0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,
31 0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x1e,0x3d,0xe7,0x80,0x00,0x3d,
32 0xe7,0x00,0x00,0x3d,0xff,0x80,0x00,0x7d,0xff,0xff,0xff,0xfd,0xff,0xff,0xff,0xfd,
33 0xf0,0x00,0x00,0x1d,0xe0,0x00,0x00,0x0d,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
34 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,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,0x80,0x00,0x00,0x00
39 static const UBYTE disk_data_2[] =
41 0x00,0x00,0x00,0x00,0x70,0x00,0x07,0xbc,0x70,0x01,0xe7,0xbe,0x70,0x01,0xe7,0xbf,
42 0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,
43 0x70,0x01,0xe7,0xbf,0x70,0x01,0xe7,0xbf,0x70,0x00,0x07,0xbf,0x70,0x00,0x07,0xbf,
44 0x73,0xff,0xff,0xbf,0x70,0x00,0x00,0x7f,0x7f,0xff,0xff,0xff,0x7f,0xff,0xff,0xff,
45 0x7f,0xff,0xff,0xff,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,0x70,0x00,0x00,0x0f,
46 0x70,0x00,0x00,0x0f,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,0x7f,0xff,0xff,0xfe,
49 0xff,0xff,0xff,0xf0,0xe4,0x00,0x03,0xf8,0xe4,0x00,0x03,0xfc,0xe4,0x00,0x13,0xfd,
50 0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,
51 0xe4,0x00,0x13,0xfd,0xe4,0x00,0x13,0xfd,0xe4,0x00,0xf3,0xfd,0xe4,0x00,0x03,0xfd,
52 0xe0,0x00,0x03,0xfd,0xfe,0x00,0x03,0xfd,0xff,0xff,0xff,0xfd,0xff,0xff,0xff,0xfd,
53 0xf0,0x00,0x00,0x1d,0xe0,0x00,0x00,0x0d,0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,
54 0xe7,0xff,0xff,0xed,0xe7,0xff,0xff,0xed,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,0x80,0x00,0x00,0x00
59 static const UBYTE drawer_data_1[] =
61 0x00,0x00,0x03,0x00,0x00,0x00,0x0f,0x80,0x00,0x00,0x3f,0x80,0x00,0x00,0xff,0xc0,
62 0x00,0x03,0xff,0xc0,0x00,0x0f,0xff,0xe0,0x00,0x3f,0xff,0xe0,0x00,0xff,0xff,0xf0,
63 0x03,0xff,0xff,0xf0,0x03,0xff,0xff,0xf8,0x01,0xff,0xff,0xf8,0x01,0xff,0xff,0xfc,
64 0x00,0xff,0xff,0xfc,0x00,0xff,0xff,0xfe,0x00,0x7f,0xff,0xfe,0x00,0x7f,0xff,0xff,
65 0x00,0x3f,0xff,0xff,0x30,0x3f,0xff,0xff,0x38,0x1f,0xff,0xff,0x1c,0x1f,0xff,0xfe,
66 0x0e,0x0f,0xff,0xfc,0x07,0x0f,0xff,0xf8,0x03,0x87,0xff,0xf0,0x01,0xc7,0xff,0xe0,
67 0x00,0xe3,0xff,0xc0,0x00,0x73,0xff,0x80,0x00,0x39,0xff,0x00,0x00,0x1d,0xfe,0x00,
68 0x00,0x0e,0xfc,0x00,0x00,0x07,0xf8,0x00,0x00,0x03,0xf0,0x00,0x00,0x01,0xe0,0x00,
69 0x00,0x00,0x03,0x00,0x00,0x00,0x0f,0x80,0x00,0x00,0x3f,0x80,0x00,0x00,0xff,0xc0,
70 0x00,0x03,0xff,0xc0,0x00,0x0f,0xff,0xe0,0x00,0x3f,0xff,0xe0,0x00,0xff,0xff,0xf0,
71 0x03,0xff,0xff,0xf0,0x03,0xff,0xff,0xf8,0x01,0xff,0xff,0xf8,0x01,0xff,0xff,0xfc,
72 0x00,0xff,0xff,0xfc,0x01,0xff,0xff,0xfe,0x07,0x7f,0xff,0xfe,0x1f,0xff,0xff,0xff,
73 0x1f,0xbf,0xff,0xff,0x3f,0xff,0xff,0xfe,0x2f,0xdf,0xff,0xfd,0x17,0xff,0xff,0xfa,
74 0x0b,0xef,0xff,0xf4,0x05,0xff,0xff,0xe8,0x02,0xf7,0xff,0xd0,0x01,0x7f,0xff,0xa0,
75 0x00,0xbb,0xff,0x40,0x00,0x5f,0xfe,0x80,0x00,0x2d,0xfd,0x00,0x00,0x17,0xfa,0x00,
76 0x00,0x0a,0xf4,0x00,0x00,0x05,0xe8,0x00,0x00,0x02,0xd0,0x00,0x00,0x01,0x20,0x00
79 static const UBYTE drawer_data_2[] =
81 0x00,0x00,0x03,0x00,0x00,0x00,0x0f,0x80,0x00,0x00,0x3f,0x80,0x00,0x00,0xff,0xc0,
82 0x00,0x03,0xff,0xc0,0x00,0x0f,0xff,0xe0,0x00,0x3f,0xff,0xe0,0x00,0xff,0xff,0xf0,
83 0x03,0xff,0xff,0xf0,0x03,0xff,0xff,0xf8,0x01,0xff,0xff,0xf8,0x01,0xff,0xff,0xfc,
84 0x00,0xff,0xff,0xfc,0x00,0xff,0xff,0xfe,0x00,0x7f,0xff,0xfe,0x00,0x7f,0xff,0xff,
85 0x00,0x3f,0xff,0xff,0x30,0x3f,0xff,0xff,0x38,0x1f,0xff,0xff,0x1c,0x1f,0xff,0xfe,
86 0x0e,0x0f,0xff,0xfc,0x07,0x0f,0xff,0xf8,0x03,0x87,0xff,0xf0,0x01,0xc7,0xff,0xe0,
87 0x00,0xe3,0xff,0xc0,0x00,0x73,0xff,0x80,0x00,0x39,0xff,0x00,0x00,0x1d,0xfe,0x00,
88 0x00,0x0e,0xfc,0x00,0x00,0x07,0xf8,0x00,0x00,0x03,0xf0,0x00,0x00,0x01,0xe0,0x00,
89 0x00,0x00,0x03,0x00,0x00,0x00,0x1f,0x80,0x00,0x00,0x7f,0x80,0x00,0x01,0xff,0xc0,
90 0x00,0x07,0xff,0xc0,0x00,0x1f,0xff,0xe0,0x00,0x7f,0xff,0xe0,0x01,0xff,0xff,0xf0,
91 0x07,0xff,0xff,0xf0,0x1f,0xff,0xff,0xf8,0x7f,0xff,0xff,0xf8,0x7f,0xff,0xff,0xfc,
92 0x3f,0xff,0xff,0xfc,0x1f,0xff,0xff,0xfe,0x0f,0x7f,0xff,0xfe,0x17,0xff,0xff,0xff,
93 0x1b,0xbf,0xff,0xff,0x3d,0xff,0xff,0xfe,0x2e,0xdf,0xff,0xfd,0x17,0x7f,0xff,0xfa,
94 0x0b,0xaf,0xff,0xf4,0x05,0xdf,0xff,0xe8,0x02,0xe7,0xff,0xd0,0x01,0x77,0xff,0xa0,
95 0x00,0xbb,0xff,0x40,0x00,0x5f,0xfe,0x80,0x00,0x2d,0xfd,0x00,0x00,0x17,0xfa,0x00,
96 0x00,0x0a,0xf4,0x00,0x00,0x05,0xe8,0x00,0x00,0x02,0xd0,0x00,0x00,0x01,0x20,0x00
99 static const UBYTE project_data_1[] =
101 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
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,0x01,
105 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x18,
106 0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x60,0x80,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
107 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
108 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
109 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
110 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,
111 0x00,0x07,0xe0,0x00,0x00,0x0f,0xf8,0x00,0x00,0x1f,0xfe,0x00,0x00,0x3f,0xff,0x80,
112 0x00,0x7f,0xff,0xe0,0x00,0xff,0xff,0xf8,0x01,0xff,0xff,0xfe,0x03,0xff,0xff,0xfd,
113 0x07,0xff,0xff,0xf9,0x0f,0xff,0xff,0xf2,0x1f,0xff,0xff,0xe4,0x3f,0xff,0xff,0xc8,
114 0x7f,0xff,0xff,0x90,0xff,0xff,0xff,0x20,0x3f,0xff,0xfe,0x40,0x8f,0xff,0xfc,0x80,
115 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
116 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00,
119 static const UBYTE project_data_2[] =
121 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
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,0x01,
125 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x18,
126 0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x60,0x80,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
127 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
128 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
129 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x0f,0xfc,0x00,0x00,0x3b,0xe7,0x80,
132 0x00,0x7d,0x9f,0xe0,0x00,0xfe,0x7f,0xf8,0x01,0xff,0xff,0xfe,0x03,0xff,0xff,0xfd,
133 0x07,0xff,0xff,0xf9,0x0f,0xff,0xff,0xf2,0x1f,0xff,0xff,0xe4,0x3f,0xff,0xff,0xc8,
134 0x7f,0xff,0xff,0x90,0xff,0xff,0xff,0x20,0x3f,0xff,0xfe,0x40,0x8f,0xff,0xfc,0x80,
135 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
136 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00,
139 static const UBYTE tool_data_1[] =
141 0x00,0x00,0x00,0x00,0x07,0xf0,0x00,0x00,0x0c,0x10,0x00,0x00,0x10,0x30,0x00,0x00,
142 0x20,0x60,0x00,0x00,0x40,0xc0,0x00,0x00,0x40,0xc1,0x00,0x00,0x40,0xc2,0x80,0x00,
143 0x40,0x64,0xc0,0x00,0x41,0x18,0xc0,0x00,0x43,0x88,0xc0,0x00,0x62,0xc5,0x80,0x00,
144 0x31,0x63,0x80,0x00,0x18,0xc3,0x00,0x00,0x0c,0x06,0x00,0x00,0x0c,0x0c,0x00,0x01,
145 0x04,0xc8,0x00,0x03,0x04,0x80,0x00,0x06,0x04,0x80,0x00,0x0c,0x04,0x00,0x00,0x18,
146 0x04,0x80,0x00,0x30,0x01,0x00,0x00,0x60,0x84,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
147 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
148 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
149 0x00,0x00,0x00,0x00,0x04,0x10,0x00,0x00,0x01,0xc0,0x00,0x00,0x07,0x90,0x00,0x00,
150 0x0f,0x20,0x00,0x00,0x5e,0x40,0x00,0x00,0x3e,0x40,0x00,0x00,0x3e,0x41,0x00,0x00,
151 0x3f,0x01,0x60,0x00,0x3c,0x43,0x58,0x00,0x5d,0x36,0x4e,0x00,0x4c,0x90,0x9f,0x80,
152 0x24,0x58,0xbf,0xe0,0x12,0x19,0x7f,0xf8,0x0b,0xf2,0xff,0xfe,0x0b,0xe5,0xff,0xfd,
153 0x03,0x63,0xff,0xf9,0x0b,0x27,0xff,0xf2,0x17,0x8f,0xff,0xe4,0x23,0x1f,0xff,0xc8,
154 0x47,0xbf,0xff,0x90,0x83,0x7f,0xff,0x20,0x24,0xff,0xfe,0x40,0x89,0xff,0xfc,0x80,
155 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
156 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00
159 static const UBYTE tool_data_2[] =
161 0x00,0x00,0x00,0x00,0x07,0xf0,0x00,0x00,0x0c,0x10,0x00,0x00,0x10,0x30,0x00,0x00,
162 0x20,0x68,0x00,0x00,0x40,0xcc,0x00,0x00,0x40,0xcc,0x00,0x00,0x40,0x8c,0x00,0x00,
163 0x40,0x78,0x00,0x00,0x41,0x10,0x00,0x00,0x43,0x88,0x00,0x00,0x62,0xc4,0x00,0x00,
164 0x31,0x62,0x00,0x00,0x18,0xc2,0x00,0x00,0x0c,0x06,0x00,0x00,0x0c,0x0c,0x00,0x01,
165 0x04,0xc8,0x00,0x03,0x04,0x80,0x00,0x06,0x04,0x80,0x00,0x0c,0x04,0x00,0x00,0x18,
166 0x04,0x80,0x00,0x30,0x01,0x00,0x00,0x60,0x84,0x00,0x00,0xc0,0xe0,0x00,0x01,0x80,
167 0x38,0x00,0x03,0x00,0x0e,0x00,0x06,0x00,0x03,0x80,0x0c,0x00,0x00,0xe0,0x18,0x00,
168 0x00,0x38,0x30,0x00,0x00,0x0e,0x60,0x00,0x00,0x03,0xc0,0x00,0x00,0x00,0x80,0x00,
169 0x00,0x00,0x00,0x00,0x04,0x10,0x00,0x00,0x01,0xc0,0x00,0x00,0x07,0x80,0x00,0x00,
170 0x0f,0x10,0x00,0x00,0x5e,0x14,0x00,0x00,0x3e,0x74,0x00,0x00,0x3e,0x64,0x00,0x00,
171 0x3f,0x08,0x00,0x00,0x3c,0x40,0x00,0x00,0x5d,0x33,0xfc,0x00,0x4c,0x91,0xe7,0x80,
172 0x24,0x58,0x9f,0xe0,0x12,0x18,0x7f,0xf8,0x0b,0xf2,0xff,0xfe,0x0b,0xe5,0xff,0xfd,
173 0x03,0x63,0xff,0xf9,0x0b,0x27,0xff,0xf2,0x17,0x8f,0xff,0xe4,0x23,0x1f,0xff,0xc8,
174 0x47,0xbf,0xff,0x90,0x83,0x7f,0xff,0x20,0x24,0xff,0xfe,0x40,0x89,0xff,0xfc,0x80,
175 0x23,0xff,0xf9,0x00,0x08,0xff,0xf2,0x00,0x02,0x3f,0xe4,0x00,0x00,0x8f,0xc8,0x00,
176 0x00,0x23,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x02,0x40,0x00,0x00,0x00,0x80,0x00
179 struct DiskObject *__GetBuiltinIcon_WB(LONG type, struct IconBase *IconBase)
181 struct DiskObject temp = { 0 };
182 struct DrawerData dd = { { 0 }, 0 };
183 struct Image img1 = { 0 };
184 struct Image img2 = { 0 };
186 /* Only WBDISK, WBDRAWER, WBTOOL and WBPROJECT are supported */
187 if (type < WBDISK || type > WBPROJECT) return NULL;
189 temp.do_Magic = WB_DISKMAGIC;
190 temp.do_Version = (WB_DISKVERSION << 8) | WB_DISKREVISION;
191 temp.do_Type = type;
192 temp.do_CurrentX = NO_ICON_POSITION;
193 temp.do_CurrentY = NO_ICON_POSITION;
194 temp.do_Gadget.GadgetRender = &img1;
195 temp.do_Gadget.SelectRender = &img2;
196 temp.do_Gadget.Width = ICON_HEIGHT;
197 temp.do_Gadget.Height = ICON_HEIGHT;
198 temp.do_Gadget.Flags |= GFLG_GADGIMAGE;
199 // FIXME: probably need to setup some more fields
201 img1.Width = ICON_WIDTH;
202 img1.Height = ICON_HEIGHT;
203 img1.PlanePick = ICON_DEPTH;
204 img2.Width = ICON_WIDTH;
205 img2.Height = ICON_HEIGHT;
206 img2.PlanePick = ICON_DEPTH;
208 switch (type)
210 case WBDISK:
211 temp.do_DrawerData = &dd;
212 img1.ImageData = (UWORD *) disk_data_1;
213 img2.ImageData = (UWORD *) disk_data_2;
214 break;
216 case WBDRAWER:
217 temp.do_DrawerData = &dd;
218 img1.ImageData = (UWORD *) drawer_data_1;
219 img2.ImageData = (UWORD *) drawer_data_2;
220 break;
222 case WBPROJECT:
223 img1.ImageData = (UWORD *) project_data_1;
224 img2.ImageData = (UWORD *) project_data_2;
225 break;
227 case WBTOOL:
228 img1.ImageData = (UWORD *) tool_data_1;
229 img2.ImageData = (UWORD *) tool_data_2;
230 break;
233 return DupDiskObjectA(&temp, NULL);