Subversion Repositories Kolibri OS

Rev

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

Rev 5765 Rev 5776
Line 671... Line 671...
671
	if (! TestBit(attr, 4) ) //file or folder?
671
	if (! TestBit(attr, 4) ) //file or folder?
672
	{	
672
	{	
673
		ext1 = strrchr(file_name_off,'.') + file_name_off;
673
		ext1 = strrchr(file_name_off,'.') + file_name_off;
674
		if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing 
674
		if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing 
675
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);
675
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);
676
		WriteText(7-strlen(ConvertSize(file.sizelo))*6+files.x+files.w - 58, files.text_y + y,files.font_type,0,ConvertSize(file.sizelo));
676
		WriteText(7-strlen(ConvertSize(file.sizelo))*6+files.x+files.w - 58, files.text_y + y +1,files.font_type,0,ConvertSize(file.sizelo));
677
	}
677
	}
678
	else
678
	else
679
	{
679
	{
680
		if (!strncmp(file_name_off,"..",3)) ext1=".."; else ext1="";
680
		if (!strncmp(file_name_off,"..",3)) ext1=".."; else ext1="";
681
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);		
681
		Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);		
Line 696... Line 696...
696
		{
696
		{
697
			FileShow.start_x = files.x + 23;
697
			FileShow.start_x = files.x + 23;
698
			FileShow.font_color = text_col;
698
			FileShow.font_color = text_col;
699
			FileShow.area_size_x = files.w - 164;
699
			FileShow.area_size_x = files.w - 164;
700
			FileShow.text_pointer = file_name_off;
700
			FileShow.text_pointer = file_name_off;
701
			FileShow.start_y = files.text_y + y;
701
			FileShow.start_y = files.text_y + y + 1;
702
			PathShow_prepare stdcall(#FileShow);
702
			PathShow_prepare stdcall(#FileShow);
703
			PathShow_draw stdcall(#FileShow);
703
			PathShow_draw stdcall(#FileShow);
704
		}		
704
		}		
705
	}
705
	}
706
	else
706
	else
707
	{
707
	{
708
		font.bg_color = bgcol;
708
		font.bg_color = bgcol;
-
 
709
		font.prepare(0, 0, file_name_off);
709
		font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off);
710
		font.show(files.x + 23, files.line_h - font.size.height / 2 + y);
710
	}
711
	}
711
	DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
712
	DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
712
	DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
713
	DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
713
}
714
}