Subversion Repositories Kolibri OS

Rev

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

Rev 5631 Rev 5687
Line 27... Line 27...
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 Put_icon(dword extension, xx, yy, fairing_color, icon_n)
31
{
31
{
Line 32... Line 32...
32
	int i, font_half_width;
32
	int i, font_half_height;
33
 
33
 
34
	if (extension) for (i=0; ext[i]!=0; i+=2;)
34
	if (extension) for (i=0; ext[i]!=0; i+=2;)
35
	{
35
	{
Line 41... Line 41...
41
	}
41
	}
Line 42... Line 42...
42
 
42
 
43
	ficons_pal[0] = fairing_color;
43
	ficons_pal[0] = fairing_color;
44
	PutPaletteImage(icon_n*16*15+#ficons,16,15,xx,yy,8,#ficons_pal);
44
	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);
45
	if (fairing_color!=0xFFFfff) IconFairing(icon_n, xx, yy, fairing_color);
46
	if (use_big_fonts) font_half_width=4; else font_half_width=3;
46
	if (use_big_fonts) font_half_height=0; else font_half_height=4;
47
	if (icon_n!=17) && (strlen(extension)<9) WriteText(-strlen(extension)*font_half_width+Form.cwidth-120,yy+4,font_type,0,extension);
47
	if (icon_n!=17) && (strlen(extension)<9) WriteText(-FileShow.font_size_x/2*strlen(extension)+Form.cwidth-121,yy+font_half_height,font_type,0,extension);
Line 48... Line 48...
48
}
48
}
49
 
49