Subversion Repositories Kolibri OS

Rev

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

Rev 5493 Rev 5532
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;
32
	int i, font_half_width;
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 (icon_n<>17) && (strlen(extension)<9) WriteText(-strlen(extension)*3+Form.cwidth-120,yy+4,0x80,0,extension);
47
	if (icon_n<>17) && (strlen(extension)<9) WriteText(-strlen(extension)*font_half_width+Form.cwidth-120,yy+4,font_type,0,extension);
Line 47... Line 48...
47
}
48
}
48
 
49