Subversion Repositories Kolibri OS

Rev

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

Rev 6289 Rev 6290
Line 664... Line 664...
664
void Line_ReDraw(dword bgcol, filenum){
664
void Line_ReDraw(dword bgcol, filenum){
665
	dword text_col=0,
665
	dword text_col=0,
666
		  ext1, attr,
666
		  ext1, attr,
667
		  file_offet,
667
		  file_offet,
668
		  file_name_off,
668
		  file_name_off,
669
		  y=filenum*files.item_h+files.y;
669
		  y=filenum*files.item_h+files.y,
-
 
670
		  icon_y = files.item_h/2-7+y;
670
		  BDVK file;
671
		  BDVK file;
671
	char label_file_name[4096];
672
	char label_file_name[4096];
672
	if (filenum==-1) return;
673
	if (filenum==-1) return;
673
	DrawBar(files.x,y,3,files.item_h,bgcol); 
674
	DrawBar(files.x,y,3,files.item_h,bgcol);
674
	DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol);
675
	DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol);
675
	DrawBar(files.x+3,y+17,16,1,bgcol);
-
 
676
	if (files.item_h>18) DrawBar(files.x+3,y+18,16,files.item_h-18,bgcol);
676
	if (files.item_h>15) DrawBar(files.x+3,y,16,icon_y-y,bgcol);
677
	if (files.item_h>15) DrawBar(files.x+3,y,16,files.item_h-15,bgcol); 
677
	if (files.item_h>16) DrawBar(files.x+3,icon_y+15,16,y+files.item_h-icon_y-15,bgcol);
Line 678... Line 678...
678
 
678
 
679
	file_offet = file_mas[filenum+files.first]*304 + buf+32;
679
	file_offet = file_mas[filenum+files.first]*304 + buf+32;
680
	attr = ESDWORD[file_offet];
680
	attr = ESDWORD[file_offet];
681
	file.selected = ESBYTE[file_offet+7];
681
	file.selected = ESBYTE[file_offet+7];
Line 694... Line 694...
694
		if (!strncmp(file_name_off,"..",3))	ext1=".."; else {
694
		if (!strncmp(file_name_off,"..",3))	ext1=".."; else {
695
			ext1="";
695
			ext1="";
696
			WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, 0, ext1);
696
			WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, 0, ext1);
697
		}
697
		}
698
	}
698
	}
699
	DrawIconByExtension(ext1, files.x+3, files.item_h/2-7+y, bgcol);
699
	DrawIconByExtension(ext1, files.x+3, icon_y, bgcol);
Line 700... Line 700...
700
 
700
 
701
	if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=0xA6A6B7; //system or hiden?
701
	if (TestBit(attr, 1)) || (TestBit(attr, 2)) text_col=0xA6A6B7; //system or hiden?
702
	if (bgcol!=0xFFFfff)
702
	if (bgcol!=0xFFFfff)
703
	{
703
	{