Subversion Repositories Kolibri OS

Rev

Rev 4049 | Rev 4069 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4049 Rev 4057
Line 20... Line 20...
20
"gif", 19, "bmp", 19, "tga", 19, "pcx", 19, "png", 19, "pnm", 19, "jpg", 19, "xcf", 19, "ai",  19,
20
"gif", 19, "bmp", 19, "tga", 19, "pcx", 19, "png", 19, "pnm", 19, "jpg", 19, "xcf", 19, "ai",  19,
21
"jpeg",19, "raw", 19, "psd", 19, "wbmp",19, "tiff",19, "tif", 19, 
21
"jpeg",19, "raw", 19, "psd", 19, "wbmp",19, "tiff",19, "tif", 19, 
22
"3ds", 20, "ico", 20, "cur", 20, "ani", 20, "vox", 20,
22
"3ds", 20, "ico", 20, "cur", 20, "ani", 20, "vox", 20,
23
"img", 21, "ima", 21,
23
"img", 21, "ima", 21,
24
"dll", 22, "obj", 22, "dict",22,
24
"dll", 22, "obj", 22, "dict",22,
25
"rar", 23, "zip", 23, "cab", 23, "tar", 23, "ajr", 23, "jar", 23, "7z",  23, "gz",  23,
25
"rar", 23, "zip", 23, "cab", 23, "tar", 23, "ajr", 23, "jar", 23, "7z", 23, "gz", 23, "kexp", 23,
26
"iso", 24, "cue", 24, "nrg", 24, "mdf", 24,
26
"iso", 24, "cue", 24, "nrg", 24, "mdf", 24,
27
"grf", 25,
27
"grf", 25,
28
0,0};
28
0,0};
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
 
30
 
31
#include "imgs\icons.txt"
31
#include "imgs\icons.txt"
32
 
32
 
33
void Put_icon(dword extension, xx, yy, fairing_color)
33
void Put_icon(dword extension, xx, yy, fairing_color, default_icon)
Line 34... Line 34...
34
{ 
34
{ 
35
	int icon_n=0, i;
35
	int icon_n=default_icon, i;
36
	for (i=0; ext[i]!=0; i+=2;)	if (!strcmp(extension, ext[i]))	{ icon_n = ext[i+1]; break;	}
36
	for (i=0; ext[i]!=0; i+=2;)	if (!strcmp(extension, ext[i]))	{ icon_n = ext[i+1]; break;	}
Line 59... Line 59...
59
			DrawBar(x+1,y,1,6,color);
59
			DrawBar(x+1,y,1,6,color);
60
			DrawBar(x,y+10,1,5,color);
60
			DrawBar(x,y+10,1,5,color);
61
			DrawBar(x+1,y+11,1,4,color);
61
			DrawBar(x+1,y+11,1,4,color);
62
			GOTO RIGHT_PAINT;
62
			GOTO RIGHT_PAINT;
63
		case 9: //inc
63
		case 9: //inc
64
			DrawBar(208,y,1,3,color);
64
			DrawBar(x+13,y,1,3,color);
65
			DrawBar(209,y,2,4,color);
65
			DrawBar(x+14,y,2,4,color);
66
			DrawBar(210,y,1,15,color);
66
			DrawBar(x+15,y,1,15,color);
67
			PutPixel(198,y+14,color);
67
			PutPixel(x+3,y+14,color);
68
			DrawBar(199,y+13,1,2,color);
68
			DrawBar(x+4,y+13,1,2,color);
69
			DrawBar(200,y+12,10,3,color);
69
			DrawBar(x+5,y+12,10,3,color);
70
			PutPixel(205,y+11,color);
70
			PutPixel(x+10,y+11,color);
71
			DrawBar(206,y+10,1,2,color);
71
			DrawBar(x+11,y+10,1,2,color);
72
			DrawBar(207,y+9,1,3,color);
72
			DrawBar(x+12,y+9,1,3,color);
73
			PutPixel(207,y+7,color);
73
			PutPixel(x+12,y+7,color);
74
			DrawBar(208,y+6,2,7,color);
74
			DrawBar(x+13,y+6,2,7,color);
75
			PutPixel(209,y+5,color);
75
			PutPixel(x+14,y+5,color);
76
			return;
76
			return;
77
		case 10: //font
77
		case 10: //font
78
			DrawBar(x+1,y+1,1,13,color);
78
			DrawBar(x+1,y+1,1,13,color);
79
			DrawBar(197,y+1,1,11,color);
79
			DrawBar(x+2,y+1,1,11,color);
80
			DrawBar(198,y+1,1,10,color);
80
			DrawBar(x+3,y+1,1,10,color);
81
			DrawBar(199,y+1,1,9,color);
81
			DrawBar(x+4,y+1,1,9,color);
82
			DrawBar(200,y+1,1,7,color);
82
			DrawBar(x+5,y+1,1,7,color);
83
			DrawBar(201,y+1,1,5,color);
83
			DrawBar(x+6,y+1,1,5,color);
84
			DrawBar(202,y+1,1,4,color);
84
			DrawBar(x+7,y+1,1,4,color);
85
			DrawBar(203,y+1,1,2,color);
85
			DrawBar(x+8,y+1,1,2,color);
86
			DrawBar(209,y+1,1,13,color);
86
			DrawBar(x+14,y+1,1,13,color);
87
			DrawBar(208,y+1,1,11,color);
87
			DrawBar(x+13,y+1,1,11,color);
88
			PutPixel(204,y+6,color);
88
			PutPixel(x+9,y+6,color);
89
			DrawBar(203,y+10,2,1,color);
89
			DrawBar(x+8,y+10,2,1,color);
90
			DrawBar(202,y+11,2,3,color);
90
			DrawBar(x+7,y+11,2,3,color);
91
			return;
91
			return;
92
		case 12: //audio
92
		case 12: //audio
93
			PutPixel(x+2,y+9,color);
93
			PutPixel(x+2,y+9,color);
94
			PutPixel(x+1,y+10,color);
94
			PutPixel(x+1,y+10,color);
95
			PutPixel(x+10,y+8,color);
95
			PutPixel(x+10,y+8,color);
Line 99... Line 99...
99
			PutPixel(x+5,y+14,color);
99
			PutPixel(x+5,y+14,color);
100
			PutPixel(x+14,y+12,color);
100
			PutPixel(x+14,y+12,color);
101
			PutPixel(x+13,y+13,color);
101
			PutPixel(x+13,y+13,color);
102
			return;
102
			return;
103
		case 13: //skin
103
		case 13: //skin
104
			PutPixel(210,y,color); 
104
			PutPixel(x+15,y,color); 
105
			return;
105
			return;
106
		case 16...17: //folder
106
		case 16...17: //folder
107
			DrawBar(x,y,1,15,color);
107
			DrawBar(x,y,1,15,color);
108
			DrawBar(203,y,8,2,color);
108
			DrawBar(x+8,y,8,2,color);
109
			IF (filenum==17) PutPixel(206,y+1,0x1A7B17); //green arrow part
109
			IF (filenum==17) PutPixel(x+11,y+1,0x1A7B17); //green arrow part
110
			DrawBar(x+1,y+13,15,2,color);
110
			DrawBar(x+1,y+13,15,2,color);
111
			PutPixel(x+1,y,color); //.òî÷êè
111
			PutPixel(x+1,y,color); //.òî÷êè
112
			PutPixel(202,y,color);
112
			PutPixel(x+7,y,color);
113
			PutPixel(210,y+2,color);
113
			PutPixel(x+15,y+2,color);
114
			PutPixel(x+1,y+12,color);
114
			PutPixel(x+1,y+12,color);
115
			PutPixel(210,y+12,color);
115
			PutPixel(x+15,y+12,color);
116
			return;
116
			return;
117
		case 18: //êàðòðèäæ
117
		case 18: //êàðòðèäæ
118
			DrawBar(x,y+11,1,2,color);
118
			DrawBar(x,y+11,1,2,color);
119
			DrawBar(210,y+11,1,2,color);
119
			DrawBar(x+15,y+11,1,2,color);
120
			DrawBar(x,y+13,16,1,color);
120
			DrawBar(x,y+13,16,1,color);
121
			return;
121
			return;
122
		case 24: //îáðàç
122
		case 24: //îáðàç
123
			DrawBar(x,y,6,1,color);
123
			DrawBar(x,y,6,1,color);
124
			DrawBar(x,y+1,4,1,color);
124
			DrawBar(x,y+1,4,1,color);