Subversion Repositories Kolibri OS

Rev

Rev 2761 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2761 Rev 2814
1
#include "imgs\icons.txt"
1
#include "imgs\icons.txt"
2
dword Put_icon(dword extension, yy)
2
dword Put_icon(dword extension, yy)
3
{ 
3
{ 
4
	dword ftype="", fnum=0; //åøè íåèçâåñíûé ôàéë 
4
	dword ftype="", fnum=0; //åøè íåèçâåñíûé ôàéë 
5
 
5
 
6
	IF (!strcmp(extension,"htm")) || (!strcmp(extension,"html")) ||
6
	IF (!strcmp(extension,"htm")) || (!strcmp(extension,"html")) ||
7
	   (!strcmp(extension,"mht")) {fnum = 2; ftype="Web-page";}
7
	   (!strcmp(extension,"mht")) {fnum = 2; ftype="Web-page";}
8
	IF (!strcmp(extension,"ini")) || (!strcmp(extension,"conf")) {fnum = 3; ftype="Config";}
8
	IF (!strcmp(extension,"ini")) || (!strcmp(extension,"conf")) {fnum = 3; ftype="Config";}
9
	IF (!strcmp(extension,"xlt")) || (!strcmp(extension,"xls")) ||
9
	IF (!strcmp(extension,"xlt")) || (!strcmp(extension,"xls")) ||
10
		(!strcmp(extension,"ods")) || (!strcmp(extension,"xlsx")) {fnum = 4; ftype="Table";}
10
		(!strcmp(extension,"ods")) || (!strcmp(extension,"xlsx")) {fnum = 4; ftype="Table";}
11
	IF (!strcmp(extension,"cmd")) || (!strcmp(extension,"bat")) || (!strcmp(extension,"sh")) {fnum = 5; ftype="Script";}
11
	IF (!strcmp(extension,"cmd")) || (!strcmp(extension,"bat")) || (!strcmp(extension,"sh")) {fnum = 5; ftype="Script";}
12
	IF (!strcmp(extension,"com")) {fnum = 5; ftype="DOS Exec";}
12
	IF (!strcmp(extension,"com")) {fnum = 5; ftype="DOS Exec";}
13
	IF (!strcmp(extension,"kex")) {fnum = 6; ftype="Program";}
13
	IF (!strcmp(extension,"kex")) {fnum = 6; ftype="Program";}
14
	IF (!strcmp(extension,"exe")) || (!strcmp(extension,"msi")) {fnum = 7; ftype="Win32 Exec";}
14
	IF (!strcmp(extension,"exe")) || (!strcmp(extension,"msi")) {fnum = 7; ftype="Win32 Exec";}
15
	IF (!strcmp(extension,"sys")) || (!strcmp(extension,"ocx")) ||
15
	IF (!strcmp(extension,"sys")) || (!strcmp(extension,"ocx")) ||
16
       (!strcmp(extension,"drv")) || (!strcmp(extension,"so")) fnum = 8;
16
       (!strcmp(extension,"drv")) || (!strcmp(extension,"so")) fnum = 8;
17
	IF (!strcmp(extension,"inc"))  fnum = 9;
17
	IF (!strcmp(extension,"inc"))  fnum = 9;
18
	IF (!strcmp(extension,"chr")) || (!strcmp(extension,"mt")) ||
18
	IF (!strcmp(extension,"chr")) || (!strcmp(extension,"mt")) ||
19
	   (!strcmp(extension,"ttf")) || (!strcmp(extension,"fon")) {fnum = 10; ftype="Font";}
19
	   (!strcmp(extension,"ttf")) || (!strcmp(extension,"fon")) {fnum = 10; ftype="Font";}
20
	IF (!strcmp(extension,"asm")) {fnum = 11; ftype="Source";}
20
	IF (!strcmp(extension,"asm")) {fnum = 11; ftype="Source";}
21
	IF (!strcmp(extension,"skn")) {fnum = 13; ftype="Skin";}
21
	IF (!strcmp(extension,"skn")) {fnum = 13; ftype="Skin";}
22
	IF (!strcmp(extension,"djvu")) || (!strcmp(extension,"pdf"))  || (!strcmp(extension,"fb2")) {fnum = 15; ftype="Book";}
22
	IF (!strcmp(extension,"djvu")) || (!strcmp(extension,"pdf"))  || (!strcmp(extension,"fb2")) {fnum = 15; ftype="Book";}
23
	IF (!strcmp(extension,"nes")) || (!strcmp(extension,"smc")) {fnum = 18; ftype="Cartridge";}
23
	IF (!strcmp(extension,"nes")) || (!strcmp(extension,"smc")) {fnum = 18; ftype="Cartridge";}
24
	IF (!strcmp(extension,"img")) || (!strcmp(extension,"ima")) {fnum = 21; ftype="Image";}
24
	IF (!strcmp(extension,"img")) || (!strcmp(extension,"ima")) {fnum = 21; ftype="Image";}
25
	IF (!strcmp(extension,"dll")) || (!strcmp(extension,"obj")) {fnum = 22; ftype="Library";}
25
	IF (!strcmp(extension,"dll")) || (!strcmp(extension,"obj")) {fnum = 22; ftype="Library";}
26
	IF (!strcmp(extension,"iso")) || (!strcmp(extension,"cue")) ||
26
	IF (!strcmp(extension,"iso")) || (!strcmp(extension,"cue")) ||
27
	   (!strcmp(extension,"nrg")) || (!strcmp(extension,"mdf")) {fnum = 24; ftype="Disc image";}
27
	   (!strcmp(extension,"nrg")) || (!strcmp(extension,"mdf")) {fnum = 24; ftype="Disc image";}
28
	
28
	
29
	//text
29
	//text
30
	IF (!strcmp(extension,"txt")) || (!strcmp(extension,"doc")) ||
30
	IF (!strcmp(extension,"txt")) || (!strcmp(extension,"doc")) ||
31
	   (!strcmp(extension,"rtf")) || (!strcmp(extension,"odt")) ||
31
	   (!strcmp(extension,"rtf")) || (!strcmp(extension,"odt")) ||
32
	   (!strcmp(extension,"log")) || (!strcmp(extension,"docx")) {fnum = 1; ftype="Text";}
32
	   (!strcmp(extension,"log")) || (!strcmp(extension,"docx")) {fnum = 1; ftype="Text";}
33
	//èçîáðàæåíèÿ
33
	//èçîáðàæåíèÿ
34
	IF (!strcmp(extension,"gif")) || (!strcmp(extension,"bmp")) ||
34
	IF (!strcmp(extension,"gif")) || (!strcmp(extension,"bmp")) ||
35
	   (!strcmp(extension,"tga")) || (!strcmp(extension,"pcx")) ||
35
	   (!strcmp(extension,"tga")) || (!strcmp(extension,"pcx")) ||
36
	   (!strcmp(extension,"png")) || (!strcmp(extension,"jpg")) {fnum = 19; ftype="Image";}
36
	   (!strcmp(extension,"png")) || (!strcmp(extension,"jpg")) {fnum = 19; ftype="Image";}
37
	IF (!strcmp(extension,"xcf")) || (!strcmp(extension,"ai")) ||
37
	IF (!strcmp(extension,"xcf")) || (!strcmp(extension,"ai")) ||
38
	   (!strcmp(extension,"jpeg")) || (!strcmp(extension,"raw")) ||
38
	   (!strcmp(extension,"jpeg")) || (!strcmp(extension,"raw")) ||
39
	   (!strcmp(extension,"psd")) {fnum = 19; ftype="Image";}
39
	   (!strcmp(extension,"psd")) {fnum = 19; ftype="Image";}
40
	//ïèêòîãðàììû
40
	//ïèêòîãðàììû
41
	IF (!strcmp(extension,"ico")) {fnum = 20; ftype="Icon";}
41
	IF (!strcmp(extension,"ico")) {fnum = 20; ftype="Icon";}
42
	IF (!strcmp(extension,"cur")) || (!strcmp(extension,"ani")) {fnum = 20; ftype="Cursor";}
42
	IF (!strcmp(extension,"cur")) || (!strcmp(extension,"ani")) {fnum = 20; ftype="Cursor";}
43
	//àðõèâû
43
	//àðõèâû
44
	IF (!strcmp(extension,"rar")) || (!strcmp(extension,"zip")) ||
44
	IF (!strcmp(extension,"rar")) || (!strcmp(extension,"zip")) ||
45
	   (!strcmp(extension,"cab")) || (!strcmp(extension,"tar")) ||
45
	   (!strcmp(extension,"cab")) || (!strcmp(extension,"tar")) ||
46
	   (!strcmp(extension,"ajr")) || (!strcmp(extension,"jar")) || 
46
	   (!strcmp(extension,"ajr")) || (!strcmp(extension,"jar")) || 
47
	   (!strcmp(extension,"7z")) ||(!strcmp(extension,"gz")) {fnum = 23; ftype="Archive";}
47
	   (!strcmp(extension,"7z")) ||(!strcmp(extension,"gz")) {fnum = 23; ftype="Archive";}
48
	//audio
48
	//audio
49
	IF (!strcmp(extension,"mp3")) {fnum = 12; ftype="Music";}
49
	IF (!strcmp(extension,"mp3")) {fnum = 12; ftype="Music";}
50
	IF (!strcmp(extension,"wav")) || (!strcmp(extension,"mid")) ||
50
	IF (!strcmp(extension,"wav")) || (!strcmp(extension,"mid")) ||
51
	   (!strcmp(extension,"midi")) || (!strcmp(extension,"ogg")) ||
51
	   (!strcmp(extension,"midi")) || (!strcmp(extension,"ogg")) ||
52
	   (!strcmp(extension,"wma"))  || (!strcmp(extension,"flac")) {fnum = 12; ftype="Audio";}
52
	   (!strcmp(extension,"wma"))  || (!strcmp(extension,"flac")) {fnum = 12; ftype="Audio";}
53
	//video
53
	//video
54
	IF (!strcmp(extension,"avi")) || (!strcmp(extension,"flv")) ||
54
	IF (!strcmp(extension,"avi")) || (!strcmp(extension,"flv")) ||
55
	   (!strcmp(extension,"mpg")) || (!strcmp(extension,"wmv")) ||
55
	   (!strcmp(extension,"mpg")) || (!strcmp(extension,"wmv")) ||
56
	   (!strcmp(extension,"mov")) || (!strcmp(extension,"mkv")) ||
56
	   (!strcmp(extension,"mov")) || (!strcmp(extension,"mkv")) ||
57
	   (!strcmp(extension,"mp4")) || (!strcmp(extension,"vob")) {fnum = 14; ftype="Video";}	
57
	   (!strcmp(extension,"mp4")) || (!strcmp(extension,"vob")) {fnum = 14; ftype="Video";}	
58
	//ïàïêè
58
	//ïàïêè
59
	IF (!strcmp(extension,""))	{ fnum=16;  WriteText(onLeft(145,0),yy+4,0x80,0,extension,0);}
59
	IF (!strcmp(extension,""))	{ fnum=16;  WriteText(onLeft(145,0),yy+4,0x80,0,extension,0);}
60
	IF (!strcmp(extension,"..")) fnum=17;
60
	IF (!strcmp(extension,"..")) fnum=17;
61
	//
61
	//
62
	PutPaletteImage(fnum*16*15+#ficons,16,15,195,yy,#ficons_pal);
62
	PutPaletteImage(fnum*16*15+#ficons,16,15,195,yy,#ficons_pal);
63
	WriteText(onLeft(160,0),yy+4,0x80,0,ftype,0);
63
	WriteText(onLeft(160,0),yy+4,0x80,0,ftype,0);
64
	return fnum;
64
	return fnum;
65
}
65
}
66
 
66
 
67
 
67
 
68
 
68
 
69
void IconFairing(int filenum, y)
69
void IconFairing(int filenum, y, color)
70
{
70
{
71
	switch(filenum)
71
	switch(filenum)
72
	{
72
	{
73
		case 0...1: //ôàéëèê
73
		case 0...1: //ôàéëèê
74
			DrawBar(195,y,2,15,videlenie);
74
			DrawBar(195,y,2,15,color);
75
			RIGHT_PAINT:
75
			RIGHT_PAINT:
76
			DrawBar(209,y,2,15,videlenie);
76
			DrawBar(209,y,2,15,color);
77
			DrawBar(205,y,4,1,videlenie);
77
			DrawBar(205,y,4,1,color);
78
			DrawBar(206,y+1,3,1,videlenie);
78
			DrawBar(206,y+1,3,1,color);
79
			DrawBar(207,y+2,2,1,videlenie);
79
			DrawBar(207,y+2,2,1,color);
80
			PutPixel(208,y+3,videlenie);
80
			PutPixel(208,y+3,color);
81
			return;
81
			return;
82
		case 2: //html
82
		case 2: //html
83
			DrawBar(195,y,1,7,videlenie);
83
			DrawBar(195,y,1,7,color);
84
			DrawBar(196,y,1,6,videlenie);
84
			DrawBar(196,y,1,6,color);
85
			DrawBar(195,y+10,1,5,videlenie);
85
			DrawBar(195,y+10,1,5,color);
86
			DrawBar(196,y+11,1,4,videlenie);
86
			DrawBar(196,y+11,1,4,color);
87
			GOTO RIGHT_PAINT;
87
			GOTO RIGHT_PAINT;
88
		case 3: //íàñòðîéêè
88
		case 3: //íàñòðîéêè
89
			DrawBar(195,y,2,7,videlenie);
89
			DrawBar(195,y,2,7,color);
90
			DrawBar(195,y+7,1,2,videlenie);
90
			DrawBar(195,y+7,1,2,color);
91
			DrawBar(195,y+12,1,3,videlenie);
91
			DrawBar(195,y+12,1,3,color);
92
			PutPixel(196,y+14,videlenie);
92
			PutPixel(196,y+14,color);
93
			GOTO RIGHT_PAINT;
93
			GOTO RIGHT_PAINT;
94
		case 9: //inc
94
		case 9: //inc
95
			DrawBar(195,y,1,12,videlenie);
95
			DrawBar(195,y,1,12,color);
96
			DrawBar(196,y,1,11,videlenie);
96
			DrawBar(196,y,1,11,color);
97
			DrawBar(197,y,1,10,videlenie);
97
			DrawBar(197,y,1,10,color);
98
			DrawBar(198,y,1,5,videlenie);
98
			DrawBar(198,y,1,5,color);
99
			DrawBar(199,y,1,4,videlenie);
99
			DrawBar(199,y,1,4,color);
100
			DrawBar(200,y,1,3,videlenie);
100
			DrawBar(200,y,1,3,color);
101
			DrawBar(201,y,1,2,videlenie);
101
			DrawBar(201,y,1,2,color);
102
			DrawBar(202,y,1,3,videlenie);
102
			DrawBar(202,y,1,3,color);
103
			DrawBar(203,y,1,2,videlenie);
103
			DrawBar(203,y,1,2,color);
104
			PutPixel(204,y,videlenie);
104
			PutPixel(204,y,color);
105
			PutPixel(205,y+4,videlenie);
105
			PutPixel(205,y+4,color);
106
			PutPixel(206,y+3,videlenie);
106
			PutPixel(206,y+3,color);
107
			PutPixel(207,y,videlenie);
107
			PutPixel(207,y,color);
108
			PutPixel(207,y+2,videlenie);
108
			PutPixel(207,y+2,color);
109
			DrawBar(208,y,1,3,videlenie);
109
			DrawBar(208,y,1,3,color);
110
			DrawBar(209,y,2,4,videlenie);
110
			DrawBar(209,y,2,4,color);
111
			DrawBar(210,y,1,15,videlenie);
111
			DrawBar(210,y,1,15,color);
112
			PutPixel(198,y+14,videlenie);
112
			PutPixel(198,y+14,color);
113
			DrawBar(199,y+13,1,2,videlenie);
113
			DrawBar(199,y+13,1,2,color);
114
			DrawBar(200,y+12,10,3,videlenie);
114
			DrawBar(200,y+12,10,3,color);
115
			PutPixel(205,y+11,videlenie);
115
			PutPixel(205,y+11,color);
116
			DrawBar(206,y+10,1,2,videlenie);
116
			DrawBar(206,y+10,1,2,color);
117
			DrawBar(207,y+9,1,3,videlenie);
117
			DrawBar(207,y+9,1,3,color);
118
			PutPixel(207,y+7,videlenie);
118
			PutPixel(207,y+7,color);
119
			DrawBar(208,y+6,2,7,videlenie);
119
			DrawBar(208,y+6,2,7,color);
120
			PutPixel(209,y+5,videlenie);
120
			PutPixel(209,y+5,color);
121
			return;
121
			return;
122
		case 10: //font
122
		case 10: //font
123
			DrawRegion_3D(195,y,15,14,videlenie,videlenie);
123
			DrawRegion_3D(195,y,15,14,color,color);
124
			DrawBar(196,y+1,1,13,videlenie);
124
			DrawBar(196,y+1,1,13,color);
125
			DrawBar(197,y+1,1,11,videlenie);
125
			DrawBar(197,y+1,1,11,color);
126
			DrawBar(198,y+1,1,10,videlenie);
126
			DrawBar(198,y+1,1,10,color);
127
			DrawBar(199,y+1,1,9,videlenie);
127
			DrawBar(199,y+1,1,9,color);
128
			DrawBar(200,y+1,1,7,videlenie);
128
			DrawBar(200,y+1,1,7,color);
129
			DrawBar(201,y+1,1,5,videlenie);
129
			DrawBar(201,y+1,1,5,color);
130
			DrawBar(202,y+1,1,4,videlenie);
130
			DrawBar(202,y+1,1,4,color);
131
			DrawBar(203,y+1,1,2,videlenie);
131
			DrawBar(203,y+1,1,2,color);
132
			DrawBar(209,y+1,1,13,videlenie);
132
			DrawBar(209,y+1,1,13,color);
133
			DrawBar(208,y+1,1,11,videlenie);
133
			DrawBar(208,y+1,1,11,color);
134
			PutPixel(204,y+6,videlenie);
134
			PutPixel(204,y+6,color);
135
			DrawBar(203,y+10,2,1,videlenie);
135
			DrawBar(203,y+10,2,1,color);
136
			DrawBar(202,y+11,2,3,videlenie);
136
			DrawBar(202,y+11,2,3,color);
137
			return;
137
			return;
138
		case 11: //asm
138
		case 11: //asm
139
			DrawBar(195,y,1,15,videlenie);
139
			DrawBar(195,y,1,15,color);
140
			return;
140
			return;
141
		case 12: //audio
141
		case 12: //audio
142
			DrawBar(195,y,16,1,videlenie);
142
			DrawBar(195,y,16,1,color);
143
			DrawBar(195,y,1,15,videlenie);
143
			DrawBar(195,y,1,15,color);
144
			DrawBar(196,y+1,4,8,videlenie);
144
			DrawBar(196,y+1,4,8,color);
145
			DrawBar(196,y+9,1,2,videlenie);
145
			DrawBar(196,y+9,1,2,color);
146
			PutPixel(197,y+9,videlenie);
146
			PutPixel(197,y+9,color);
147
			PutPixel(196,y+14,videlenie);
147
			PutPixel(196,y+14,color);
148
			DrawBar(210,y+1,1,14,videlenie);
148
			DrawBar(210,y+1,1,14,color);
149
			DrawBar(202,y+4,6,4,videlenie);
149
			DrawBar(202,y+4,6,4,color);
150
			DrawBar(202,y+8,4,1,videlenie);
150
			DrawBar(202,y+8,4,1,color);
151
			DrawBar(202,y+9,3,1,videlenie);
151
			DrawBar(202,y+9,3,1,color);
152
			DrawBar(202,y+10,2,3,videlenie);
152
			DrawBar(202,y+10,2,3,color);
153
			DrawBar(201,y+13,4,1,videlenie);
153
			DrawBar(201,y+13,4,1,color);
154
			DrawBar(200,y+14,14,1,videlenie);
154
			DrawBar(200,y+14,14,1,color);
155
			DrawBar(209,y+12,1,2,videlenie);
155
			DrawBar(209,y+12,1,2,color);
156
			PutPixel(208,y+13,videlenie);
156
			PutPixel(208,y+13,color);
157
			return;
157
			return;
158
		case 13: //skin
158
		case 13: //skin
159
			PutPixel(210,y,videlenie); 
159
			PutPixel(210,y,color); 
160
			return;
160
			return;
161
		case 14...15: //video, book
161
		case 14...15: //video, book
162
			DrawBar(195,y,1,15,videlenie);
162
			DrawBar(195,y,1,15,color);
163
			DrawBar(210,y,1,15,videlenie);
163
			DrawBar(210,y,1,15,color);
164
			return;
164
			return;
165
		case 16...17: //ïàïêà
165
		case 16...17: //ïàïêà
166
			DrawBar(195,y,1,15,videlenie);
166
			DrawBar(195,y,1,15,color);
167
			DrawBar(203,y,8,2,videlenie);
167
			DrawBar(203,y,8,2,color);
168
			IF (filenum==17) PutPixel(206,y+1,0x1A7B17); //çåë¸íàÿ òî÷êà ñòðåëêè
168
			IF (filenum==17) PutPixel(206,y+1,0x1A7B17); //çåë¸íàÿ òî÷êà ñòðåëêè
169
			DrawBar(196,y+13,15,2,videlenie);
169
			DrawBar(196,y+13,15,2,color);
170
			PutPixel(196,y,videlenie); //.òî÷êè
170
			PutPixel(196,y,color); //.òî÷êè
171
			PutPixel(202,y,videlenie);
171
			PutPixel(202,y,color);
172
			PutPixel(210,y+2,videlenie);
172
			PutPixel(210,y+2,color);
173
			PutPixel(196,y+12,videlenie);
173
			PutPixel(196,y+12,color);
174
			PutPixel(210,y+12,videlenie);
174
			PutPixel(210,y+12,color);
175
			return;
175
			return;
176
		case 18: //êàðòðèäæ
176
		case 18: //êàðòðèäæ
177
			DrawBar(195,y,16,2,videlenie);
177
			DrawBar(195,y,16,2,color);
178
			DrawBar(195,y+11,1,2,videlenie);
178
			DrawBar(195,y+11,1,2,color);
179
			DrawBar(210,y+11,1,2,videlenie);
179
			DrawBar(210,y+11,1,2,color);
180
			DrawBar(195,y+13,16,2,videlenie);
180
			DrawBar(195,y+13,16,2,color);
181
			return;
181
			return;
182
		case 19: //èçîáðàæåíèå
182
		case 19: //èçîáðàæåíèå
183
		case 20: //èçîáðàæåíèå
183
		case 20: //èçîáðàæåíèå
184
			DrawBar(195,y+14,16,1,videlenie);
184
			DrawBar(195,y+14,16,1,color);
185
			return;
185
			return;
186
		case 21: //äèñêåòà
186
		case 21: //äèñêåòà
187
			PutPixel(195,y,videlenie);
187
			PutPixel(195,y,color);
188
			PutPixel(210,y,videlenie);
188
			PutPixel(210,y,color);
189
			return;
189
			return;
190
		case 22: //áèáëèîòåêà
190
		case 22: //áèáëèîòåêà
191
			DrawBar(195,y,16,1,videlenie); //ñâåðõó ñëåâà
191
			DrawBar(195,y,16,1,color); //ñâåðõó ñëåâà
192
			DrawBar(195,y+1,3,1,videlenie);
192
			DrawBar(195,y+1,3,1,color);
193
			DrawBar(195,y+2,2,1,videlenie);
193
			DrawBar(195,y+2,2,1,color);
194
			PutPixel(195,y+3,videlenie);
194
			PutPixel(195,y+3,color);
195
			PutPixel(210,y+11,videlenie); //ñïðàâà ñïðàâà
195
			PutPixel(210,y+11,color); //ñïðàâà ñïðàâà
196
			DrawBar(209,y+12,2,1,videlenie); 
196
			DrawBar(209,y+12,2,1,color); 
197
			DrawBar(208,y+13,3,1,videlenie);
197
			DrawBar(208,y+13,3,1,color);
198
			DrawBar(207,y+14,4,1,videlenie);
198
			DrawBar(207,y+14,4,1,color);
199
			return;
199
			return;
200
		case 23: //àðõèâ
200
		case 23: //àðõèâ
201
			PutPixel(195,y+3,videlenie);
201
			PutPixel(195,y+3,color);
202
			PutPixel(195,y+11,videlenie);
202
			PutPixel(195,y+11,color);
203
			PutPixel(210,y+3,videlenie);
203
			PutPixel(210,y+3,color);
204
			PutPixel(210,y+11,videlenie);
204
			PutPixel(210,y+11,color);
205
 
205
 
206
			DrawBar(195,y,7,1,videlenie);
206
			DrawBar(195,y,7,1,color);
207
			DrawBar(204,y,7,1,videlenie);
207
			DrawBar(204,y,7,1,color);
208
			DrawBar(195,y+14,7,1,videlenie);
208
			DrawBar(195,y+14,7,1,color);
209
			DrawBar(204,y+14,7,1,videlenie);
209
			DrawBar(204,y+14,7,1,color);
210
 
210
 
211
			DrawBar(195,y+1,5,1,videlenie);
211
			DrawBar(195,y+1,5,1,color);
212
			DrawBar(206,y+1,5,1,videlenie);
212
			DrawBar(206,y+1,5,1,color);
213
			DrawBar(195,y+13,5,1,videlenie);
213
			DrawBar(195,y+13,5,1,color);
214
			DrawBar(206,y+13,5,1,videlenie);
214
			DrawBar(206,y+13,5,1,color);
215
 
215
 
216
			DrawBar(195,y+2,3,1,videlenie);
216
			DrawBar(195,y+2,3,1,color);
217
			DrawBar(208,y+2,3,1,videlenie);
217
			DrawBar(208,y+2,3,1,color);
218
			DrawBar(195,y+12,3,1,videlenie);
218
			DrawBar(195,y+12,3,1,color);
219
			DrawBar(208,y+12,3,1,videlenie);
219
			DrawBar(208,y+12,3,1,color);
220
			return;
220
			return;
221
		case 24: //îáðàç
221
		case 24: //îáðàç
222
			DrawBar(195,y,6,1,videlenie);
222
			DrawBar(195,y,6,1,color);
223
			DrawBar(195,y+1,4,1,videlenie);
223
			DrawBar(195,y+1,4,1,color);
224
			DrawBar(195,y+2,3,1,videlenie);
224
			DrawBar(195,y+2,3,1,color);
225
			DrawBar(195,y+3,2,2,videlenie);
225
			DrawBar(195,y+3,2,2,color);
226
			
226
			
227
			DrawBar(195,y+5,1,5,videlenie);
227
			DrawBar(195,y+5,1,5,color);
228
			
228
			
229
			DrawBar(195,y+10,2,2,videlenie);
229
			DrawBar(195,y+10,2,2,color);
230
			DrawBar(195,y+12,3,1,videlenie);
230
			DrawBar(195,y+12,3,1,color);
231
			DrawBar(195,y+13,4,1,videlenie);
231
			DrawBar(195,y+13,4,1,color);
232
			DrawBar(195,y+14,6,1,videlenie);			
232
			DrawBar(195,y+14,6,1,color);			
233
 
233
 
234
			DrawBar(195+11,y,5,1,videlenie);
234
			DrawBar(195+11,y,5,1,color);
235
			DrawBar(195+13,y+1,3,1,videlenie);
235
			DrawBar(195+13,y+1,3,1,color);
236
			DrawBar(195+14,y+2,2,1,videlenie);
236
			DrawBar(195+14,y+2,2,1,color);
237
			DrawBar(195+15,y+3,1,2,videlenie);
237
			DrawBar(195+15,y+3,1,2,color);
238
			
238
			
239
			DrawBar(195+15,y+10,1,2,videlenie);
239
			DrawBar(195+15,y+10,1,2,color);
240
			DrawBar(195+14,y+12,2,1,videlenie);
240
			DrawBar(195+14,y+12,2,1,color);
241
			DrawBar(195+13,y+13,3,1,videlenie);
241
			DrawBar(195+13,y+13,3,1,color);
242
			DrawBar(195+11,y+14,5,1,videlenie);			
242
			DrawBar(195+11,y+14,5,1,color);			
243
 
243
 
244
			return;
244
			return;
245
	}
245
	}
246
}
246
}