Subversion Repositories Kolibri OS

Rev

Rev 5506 | Rev 5621 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5506 Rev 5548
Line 77... Line 77...
77
 
77
 
78
void Draw_List()
78
void Draw_List()
79
{
79
{
80
	int i;
80
	int i;
-
 
81
	int yyy;
81
	int yyy;
82
	int list_last;
82
	list[SKINS].SetSizes(0, PANEL_H, Form.cwidth-scroll1.size_x-1, Form.cheight-PANEL_H, 40, 20);
83
	list[SKINS].SetSizes(0, PANEL_H, Form.cwidth-scroll1.size_x-1, Form.cheight-PANEL_H, 40, 20);
-
 
84
	list[WALLPAPERS].SetSizes(0, PANEL_H, Form.cwidth-scroll1.size_x-1, Form.cheight-PANEL_H, 40, 20);
83
	list[WALLPAPERS].SetSizes(0, PANEL_H, Form.cwidth-scroll1.size_x-1, Form.cheight-PANEL_H, 40, 20);
85
	if (list[active].count > list[active].visible) list_last = list[active].visible; else list_last = list[active].count;
84
	
86
 
85
	for (i=0; i
87
	for (i=0; i
86
	{
88
	{
87
		cur = list[active].first;
89
		cur = list[active].first;
88
		strcpy(#temp_filename, files_mas[i+cur]*304 + buf+72);
90
		strcpy(#temp_filename, files_mas[i+cur]*304 + buf+72);
89
		temp_filename[strlen(#temp_filename)-4] = 0;
91
		temp_filename[strlen(#temp_filename)-4] = 0;
Line 92... Line 94...
92
		if (list[active].current-list[active].first==i)
94
		if (list[active].current-list[active].first==i)
93
		{
95
		{
94
			if (sc.work_button<>sc.work)
96
			if (sc.work_button<>sc.work)
95
			{
97
			{
96
				DrawBar(0, yyy, list[active].w, list[active].line_h, sc.work_button);
98
				DrawBar(0, yyy, list[active].w, list[active].line_h, sc.work_button);
97
				WriteText(12,yyy+list[active].text_y,0x80,sc.work_button_text, #temp_filename);
99
				if (i
98
			}
100
			}
99
			else
101
			else
100
			{
102
			{
101
				DrawBar(0, yyy, list[active].w, list[active].line_h, sc.grab_button);
103
				DrawBar(0, yyy, list[active].w, list[active].line_h, sc.grab_button);
102
				WriteText(12,yyy+list[active].text_y,0x80,sc.grab_button_text, #temp_filename);
104
				if (i
103
			}
105
			}
104
		}
106
		}
105
		else
107
		else
106
		{
108
		{
107
			DrawBar(0,yyy,list[active].w, list[active].line_h, 0xFFFfff);
109
			DrawBar(0,yyy,list[active].w, list[active].line_h, 0xFFFfff);
108
			WriteText(12,yyy+list[active].text_y,0x80,0, #temp_filename);
110
			WriteText(12,yyy+list[active].text_y,0x80,0, #temp_filename);
109
		}
111
		}
110
	}
112
	}
111
	DrawBar(0,list[active].visible*list[active].line_h+list[active].y, list[active].w, -list[active].visible*list[active].line_h+ list[active].h, 0xFFFfff);
113
	DrawBar(0,list_last*list[active].line_h+list[active].y, list[active].w, -list_last*list[active].line_h+ list[active].h, 0xFFFfff);
112
	DrawScroller();
114
	DrawScroller();
113
}
115
}
Line 114... Line 116...
114
 
116
 
115
void GetFiles()
117
void GetFiles()