Subversion Repositories Kolibri OS

Rev

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

Rev 5819 Rev 5825
Line 38... Line 38...
38
void DrawMenuList()
38
void DrawMenuList()
39
{
39
{
40
	int N;
40
	int N;
41
	for (N=0; N
41
	for (N=0; N
42
	{
42
	{
43
		if (N==menu.current) 
43
		if (N==menu.cur_y) 
44
			DrawBar(menu.x, N*menu.line_h+menu.y, menu.w-3, menu.line_h, 0xFFFfff);
44
			DrawBar(menu.x, N*menu.item_h+menu.y, menu.w-3, menu.item_h, 0xFFFfff);
45
		else
45
		else
46
		{
46
		{
47
			DrawBar(menu.x, N*menu.line_h+menu.y, menu.w-3, menu.line_h, 0xE4DFE1);
47
			DrawBar(menu.x, N*menu.item_h+menu.y, menu.w-3, menu.item_h, 0xE4DFE1);
48
			WriteText(19,N*menu.line_h+9,0x80,0xf2f2f2,charsets[N]);
48
			WriteText(19,N*menu.item_h+9,0x80,0xf2f2f2,charsets[N]);
49
		}
49
		}
50
		WriteText(18,N*menu.line_h+8,0x80,0x000000,charsets[N]);
50
		WriteText(18,N*menu.item_h+8,0x80,0x000000,charsets[N]);
51
	}
51
	}
52
	WriteText(5, encoding*menu.line_h+7, 0x80, 0x777777, "\x10");
52
	WriteText(5, encoding*menu.item_h+7, 0x80, 0x777777, "\x10");
53
}
53
}
Line 54... Line 54...
54
 
54
 
55
void ItemClick()
55
void ItemClick()
56
{
56
{
57
	if (encoding!=menu.current)
57
	if (encoding!=menu.cur_y)
58
	{
58
	{
59
		encoding = menu.current;
59
		encoding = menu.cur_y;
60
		action_buf = true;
60
		action_buf = true;
61
	}
61
	}
62
	ExitProcess();
62
	ExitProcess();
63
}
63
}