Subversion Repositories Kolibri OS

Rev

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

Rev 3447 Rev 3467
Line 458... Line 458...
458
	Scroll();
458
	Scroll();
459
}
459
}
Line 460... Line 460...
460
 
460
 
-
 
461
 
-
 
462
void Line_ReDraw(dword color, filenum){
-
 
463
	dword text_col=0,
461
 
464
	      name_len=0,
462
void Line_ReDraw(dword color, filenum){
465
	      attr,
463
	dword text_col=0, name_len=0, y=filenum*files.line_h+57;
466
	      y=filenum*files.line_h+57;
464
	DrawBar(files.x,y,3,files.line_h,color); 
467
	DrawBar(files.x,y,3,files.line_h,color); 
465
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
468
	DrawBar(files.x+19,y,files.w-19,files.line_h,color);
466
	DrawBar(files.x+3,y+17,16,1,color);
469
	DrawBar(files.x+3,y+17,16,1,color);
Line 467... Line 470...
467
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color);
470
	if (files.line_h>18) DrawBar(files.x+3,y+18,16,files.line_h-18,color);
-
 
471
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); 
Line 468... Line 472...
468
	if (files.line_h>15) DrawBar(files.x+3,y,16,files.line_h-15,color); 
472
 
469
 
473
	off=file_mas[filenum+files.first]*304 + buf+72;
470
	off=file_mas[filenum+files.first]*304 + buf+72;
474
	attr = ESDWORD[off - 40];
471
 
475
 
472
	if (!TestBit(ESDWORD[off-40], 4)) //file or folder?
476
	if (! TestBit(attr, 4) ) //file or folder?
473
	{	
477
	{	
474
		Put_icon(off+_strrchr(off,'.'), files.line_h/2-7+y, color);
478
		Put_icon(off+_strrchr(off,'.'), files.line_h/2-7+y, color);
475
		WriteText(7-strlen(ConvertMemSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertMemSize(ESDWORD[off-8])); //size
479
		WriteText(7-strlen(ConvertMemSize(ESDWORD[off-8]))*6+onLeft(75,0),files.line_h-6/2+y,0x80,0,ConvertMemSize(ESDWORD[off-8])); //size
476
	}
480
	}
477
	else
481
	else
478
		if (!strcmp("..",off))
482
		if (!strcmp("..",off))
479
			Put_icon("..", files.line_h/2-7+y, color);
483
			Put_icon("..", files.line_h/2-7+y, color);
480
		else
484
		else
481
			Put_icon("", files.line_h/2-7+y, color);
485
			Put_icon("", files.line_h/2-7+y, color);
482
	if (TestBit(ESDWORD[off-40],1)) || (TestBit(ESDWORD[off-40],2)) text_col=0xA6A6B7; //system or hiden?
486
	if ( TestBit(attr, 1) ) || ( TestBit(attr, 2) ) text_col=0xA6A6B7; //system or hiden?
483
	if (color!=0xFFFfff)
487
	if (color!=0xFFFfff)
484
	{
488
	{
485
		itdir=TestBit(ESDWORD[off-40], 4);		
489
		itdir = TestBit(attr, 4);
486
		strcpy(#file_name, off);
490
		strcpy(#file_name, off);