Subversion Repositories Kolibri OS

Rev

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

Rev 6264 Rev 6278
Line 25... Line 25...
25
"rar", 23, "zip", 23, "cab", 23, "tar", 23, "ajr", 23, "jar", 23, "7z", 23, "gz", 23, "kexp", 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
 
30
void Put_icon(dword extension, xx, yy, fairing_color, icon_n)
30
void DrawIconByExtension(dword extension, xx, yy, fairing_color)
31
{
31
{
32
	int i;
-
 
-
 
32
	int i;
33
 
33
	dword icon_n=0;
34
	if (extension) for (i=0; ext[i]!=0; i+=2;)
34
	if (extension) for (i=0; ext[i]!=0; i+=2;)
35
	{
35
	{
36
		if (strcmpi(extension, ext[i])==0)
36
		if (strcmpi(extension, ext[i])==0)
37
		{
37
		{
38
			icon_n = ext[i+1];
38
			icon_n = ext[i+1];
39
			break;
39
			break;
40
		}
40
		}
41
	}
-
 
42
 
41
	}
43
	ficons_pal[0] = fairing_color;
42
	ficons_pal[0] = fairing_color;
44
	PutPaletteImage(icon_n*16*15+#ficons,16,15,xx,yy,8,#ficons_pal);
43
	PutPaletteImage(icon_n*16*15+#ficons,16,15,xx,yy,8,#ficons_pal);
45
	if (fairing_color!=0xFFFfff) IconFairing(icon_n, xx, yy, fairing_color);
-
 
46
	if (icon_n!=17) && (strlen(extension)<9) WriteText(-FileShow.font_size_x/2*strlen(extension)+files.x+files.w-103,yy+3,files.font_type,0,extension);
44
	if (fairing_color!=0xFFFfff) IconFairing(icon_n, xx, yy, fairing_color);
Line 47... Line 45...
47
}
45
}
48
 
46