Subversion Repositories Kolibri OS

Rev

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

Rev 2820 Rev 2875
Line 83... Line 83...
83
"wmv", 14,
83
"wmv", 14,
84
"mov", 14,
84
"mov", 14,
85
"mkv", 14,
85
"mkv", 14,
86
"mp4", 14,
86
"mp4", 14,
87
"vob", 14,
87
"vob", 14,
-
 
88
"grf", 25,
88
0};
89
0};
Line 89... Line 90...
89
 
90
 
Line 94... Line 95...
94
void Put_icon(dword extension, yy, fairing_color)
95
void Put_icon(dword extension, yy, fairing_color)
95
{ 
96
{ 
96
	int icon_n=0, i;
97
	int icon_n=0, i;
Line 97... Line 98...
97
 
98
 
98
	for (i=0; ext[i]<>0; i+=2;)
99
	for (i=0; ext[i]<>0; i+=2;)
-
 
100
		if (!strcmp(extension, ext[i]))
-
 
101
		{
-
 
102
			icon_n = ext[i+1];
-
 
103
			break;
Line 99... Line 104...
99
		if (!strcmp(extension, ext[i])) icon_n = ext[i+1];
104
		}
100
 
105
 
101
	PutPaletteImage(icon_n*16*15+#ficons,16,15,195,yy,#ficons_pal);
106
	PutPaletteImage(icon_n*16*15+#ficons,16,15,195,yy,#ficons_pal);
102
	if (icon_n<>17) && (strlen(extension)<9) WriteText(-strlen(extension)*3+onLeft(168,0)+36,yy+4,0x80,0,extension,0);
107
	if (icon_n<>17) && (strlen(extension)<9) WriteText(-strlen(extension)*3+onLeft(168,0)+36,yy+4,0x80,0,extension,0);