Subversion Repositories Kolibri OS

Rev

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

Rev 5743 Rev 5745
Line 128... Line 128...
128
		strlcpy(#path, "/rd/1/", 6);		
128
		strlcpy(#path, "/rd/1/", 6);		
129
	}
129
	}
130
	Open_Dir(#path,ONLY_OPEN);
130
	Open_Dir(#path,ONLY_OPEN);
131
	strcpy(#inactive_path, #path);
131
	strcpy(#inactive_path, #path);
132
	llist_copy(#files_inactive, #files);
132
	llist_copy(#files_inactive, #files);
133
	//font.load("/sys/font/Verdana.kf");
-
 
134
	SetEventMask(1100111b);
133
	SetEventMask(1100111b);
135
	loop(){
134
	loop(){
136
		switch(WaitEvent())
135
		switch(WaitEvent())
137
		{
136
		{
138
			case evMouse:
137
			case evMouse:
Line 686... Line 685...
686
		strcpy(#file_name, file_name_off);
685
		strcpy(#file_name, file_name_off);
687
		sprintf(#file_path,"%s%s",#path,file_name_off);
686
		sprintf(#file_path,"%s%s",#path,file_name_off);
688
		if (text_col==0xA6A6B7) text_col=0xFFFFFF;
687
		if (text_col==0xA6A6B7) text_col=0xFFFFFF;
689
	}
688
	}
690
	if (file.selected) text_col=0xFF0000;
689
	if (file.selected) text_col=0xFF0000;
-
 
690
	if (font_size==9) || (!font.data)
-
 
691
	{
691
	if (Form.width>=480)
692
		if (Form.width>=480)
692
	{
693
		{
693
		FileShow.start_x = files.x + 23;
694
			FileShow.start_x = files.x + 23;
694
		FileShow.font_color = text_col;
695
			FileShow.font_color = text_col;
695
		FileShow.area_size_x = files.w - 164;
696
			FileShow.area_size_x = files.w - 164;
696
		FileShow.text_pointer = file_name_off;
697
			FileShow.text_pointer = file_name_off;
697
		FileShow.start_y = files.text_y + y;
698
			FileShow.start_y = files.text_y + y;
698
		PathShow_prepare stdcall(#FileShow);
699
			PathShow_prepare stdcall(#FileShow);
699
		PathShow_draw stdcall(#FileShow);
700
			PathShow_draw stdcall(#FileShow);
700
	}
701
		}		
-
 
702
	}
-
 
703
	else
-
 
704
	{
-
 
705
		font.bg_color = color;
-
 
706
		font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off, 0, font_size);
-
 
707
	}
701
	DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
708
	DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
702
	DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
709
	DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
703
}
710
}