Subversion Repositories Kolibri OS

Rev

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

Rev 7278 Rev 7462
Line 98... Line 98...
98
 
98
 
99
void MenuListRedraw()
99
void MenuListRedraw()
100
{
100
{
101
	int start_y=0;
101
	int start_y=0;
-
 
102
	int index;
-
 
103
 
-
 
104
	dword m_col_bg;
-
 
105
	dword m_col_text;
-
 
106
	dword m_col_sh_text;
102
	int index;
107
 
103
	for (index=0; file_captions[index*3]!=0; index++)
108
	for (index=0; file_captions[index*3]!=0; index++)
104
	{
109
	{
105
		if ((itdir) && (file_captions[index*3+2]>=200)) continue;
110
		if ((itdir) && (file_captions[index*3+2]>=200)) continue;
106
		if (selected_count > 0) && (file_captions[index+2]==100) continue;
111
		if (selected_count > 0) && (file_captions[index+2]==100) continue;
107
		DrawBar(1,start_y+2,1,rbmenu.item_h,0xFFFfff);
112
		DrawBar(1,start_y+2,1,rbmenu.item_h,0xFFFfff);
108
		if (start_y/rbmenu.item_h==rbmenu.cur_y)
113
		if (start_y/rbmenu.item_h==rbmenu.cur_y)
109
		{
114
		{
-
 
115
			cur_action_buf = file_captions[index*3+2];
110
			cur_action_buf = file_captions[index*3+2];
116
			m_col_bg = 0xFFFfff;
-
 
117
			m_col_sh_text = 0xFAFAFA;
111
			DrawBar(2,start_y+2,rbmenu.w-1,rbmenu.item_h,0xFFFfff);
118
			m_col_text = 0;
112
		}
119
		}
113
		else
120
		else
-
 
121
		{
114
		{
122
			m_col_bg = col_work;
115
			DrawBar(2,start_y+2,rbmenu.w-1,rbmenu.item_h,col_work);
123
			m_col_text = system.color.work_text;
116
			WriteText(8,start_y+rbmenu.text_y+4,rbmenu.font_type,0xf2f2f2,file_captions[index*3]);
124
			m_col_sh_text = system.color.work_light;
-
 
125
		}
-
 
126
		DrawBar(2, start_y+2, rbmenu.w-1, rbmenu.item_h, m_col_bg);
117
		}
127
		WriteText(8, start_y + rbmenu.text_y + 4, rbmenu.font_type, m_col_sh_text, file_captions[index*3]);
118
		WriteText(7, start_y + rbmenu.text_y + 3, rbmenu.font_type, 0, file_captions[index*3]);
128
		WriteText(7, start_y + rbmenu.text_y + 3, rbmenu.font_type, m_col_text, file_captions[index*3]);
119
		WriteText(-strlen(file_captions[index*3+1])-1*rbmenu.font_w + rbmenu.w, start_y + rbmenu.text_y + 3, rbmenu.font_type, 0x888888, file_captions[index*3+1]);
129
		WriteText(-strlen(file_captions[index*3+1])-1*rbmenu.font_w + rbmenu.w, start_y + rbmenu.text_y + 3, rbmenu.font_type, 0x888888, file_captions[index*3+1]);
120
		start_y+=rbmenu.item_h;
130
		start_y+=rbmenu.item_h;
121
	}	
131
	}	
122
}
132
}